Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
8ea59326
Commit
8ea59326
authored
Nov 09, 2006
by
Jacek Caban
Committed by
Alexandre Julliard
Nov 10, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Use popup menu from shdoclc.dll.
parent
de21efba
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
1 deletion
+18
-1
main.c
dlls/mshtml/main.c
+15
-0
mshtml_private.h
dlls/mshtml/mshtml_private.h
+2
-0
olewnd.c
dlls/mshtml/olewnd.c
+1
-1
No files found.
dlls/mshtml/main.c
View file @
8ea59326
...
...
@@ -49,6 +49,8 @@ HINSTANCE hInst;
LONG
module_ref
=
0
;
DWORD
mshtml_tls
=
0
;
static
HINSTANCE
shdoclc
=
NULL
;
static
void
thread_detach
(
void
)
{
thread_data_t
*
thread_data
=
get_thread_data
(
FALSE
);
...
...
@@ -62,6 +64,17 @@ static void thread_detach(void)
mshtml_free
(
thread_data
);
}
HINSTANCE
get_shdoclc
(
void
)
{
static
const
WCHAR
wszShdoclc
[]
=
{
's'
,
'h'
,
'd'
,
'o'
,
'c'
,
'l'
,
'c'
,
'.'
,
'd'
,
'l'
,
'l'
,
0
};
if
(
shdoclc
)
return
shdoclc
;
return
shdoclc
=
LoadLibraryExW
(
wszShdoclc
,
NULL
,
LOAD_LIBRARY_AS_DATAFILE
);
}
BOOL
WINAPI
DllMain
(
HINSTANCE
hInstDLL
,
DWORD
fdwReason
,
LPVOID
lpv
)
{
switch
(
fdwReason
)
{
...
...
@@ -70,6 +83,8 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv)
break
;
case
DLL_PROCESS_DETACH
:
close_gecko
();
if
(
shdoclc
)
FreeLibrary
(
shdoclc
);
if
(
mshtml_tls
)
TlsFree
(
mshtml_tls
);
break
;
...
...
dlls/mshtml/mshtml_private.h
View file @
8ea59326
...
...
@@ -405,4 +405,6 @@ static inline BOOL mshtml_free(void *mem)
return
HeapFree
(
GetProcessHeap
(),
0
,
mem
);
}
HINSTANCE
get_shdoclc
(
void
);
extern
HINSTANCE
hInst
;
dlls/mshtml/olewnd.c
View file @
8ea59326
...
...
@@ -272,7 +272,7 @@ void HTMLDocument_ShowContextMenu(HTMLDocument *This, DWORD dwID, POINT *ppt)
if
(
hres
==
S_OK
)
return
;
menu_res
=
LoadMenuW
(
hInst
,
MAKEINTRESOURCEW
(
IDR_BROWSE_CONTEXT_MENU
));
menu_res
=
LoadMenuW
(
get_shdoclc
()
,
MAKEINTRESOURCEW
(
IDR_BROWSE_CONTEXT_MENU
));
menu
=
GetSubMenu
(
menu_res
,
dwID
);
TrackPopupMenu
(
menu
,
TPM_LEFTALIGN
|
TPM_RIGHTBUTTON
|
TPM_RETURNCMD
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment