Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Johnny Cai
wine
Commits
3aebefed
Commit
3aebefed
authored
21 years ago
by
Rolf Kalbermatter
Committed by
Alexandre Julliard
21 years ago
Browse files
Options
Downloads
Patches
Plain Diff
SHDOCVW_118 (ShellDDEInit) is really a dynamic forward to SHELL32_188.
parent
4202112e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dlls/shdocvw/shdocvw_main.c
+50
-4
50 additions, 4 deletions
dlls/shdocvw/shdocvw_main.c
with
50 additions
and
4 deletions
dlls/shdocvw/shdocvw_main.c
+
50
−
4
View file @
3aebefed
...
...
@@ -33,7 +33,28 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
shdocvw
);
/***********************************************************************
HINSTANCE
shdocvw_hinstance
=
0
;
HMODULE
SHDOCVW_hshell32
=
0
;
/*************************************************************************
* SHDOCVW DllMain
*/
BOOL
WINAPI
DllMain
(
HINSTANCE
hinst
,
DWORD
fdwReason
,
LPVOID
fImpLoad
)
{
TRACE
(
"%p 0x%lx %p
\n
"
,
hinst
,
fdwReason
,
fImpLoad
);
switch
(
fdwReason
)
{
case
DLL_PROCESS_ATTACH
:
shdocvw_hinstance
=
hinst
;
break
;
case
DLL_PROCESS_DETACH
:
if
(
SHDOCVW_hshell32
)
FreeLibrary
(
SHDOCVW_hshell32
);
break
;
}
return
TRUE
;
}
/*************************************************************************
* DllCanUnloadNow (SHDOCVW.@)
*/
HRESULT
WINAPI
SHDOCVW_DllCanUnloadNow
(
void
)
...
...
@@ -81,6 +102,18 @@ HRESULT WINAPI SHDOCVW_DllInstall(BOOL bInstall, LPCWSTR cmdline)
return
S_OK
;
}
/*************************************************************************
* SHDOCVW_LoadShell32
*
* makes sure the handle to shell32 is valid
*/
BOOL
SHDOCVW_LoadShell32
(
void
)
{
if
(
SHDOCVW_hshell32
)
return
TRUE
;
return
((
SHDOCVW_hshell32
=
LoadLibraryA
(
"shell32.dll"
))
!=
NULL
);
}
/***********************************************************************
* @ (SHDOCVW.110)
*
...
...
@@ -99,10 +132,23 @@ DWORD WINAPI WinList_Init(void)
* Called by Win98 explorer.exe main binary, definitely has only one
* parameter.
*/
DWORD
WINAPI
ShellDDEInit
(
DWORD
dw1
)
static
BOOL
(
WINAPI
*
pShellDDEInit
)(
BOOL
start
)
=
NULL
;
BOOL
WINAPI
ShellDDEInit
(
BOOL
start
)
{
FIXME
(
"(%08lx), stub!
\n
"
,
dw1
);
return
0xcafedead
;
TRACE
(
"(%d)
\n
"
,
start
);
if
(
!
pShellDDEInit
)
{
if
(
!
SHDOCVW_LoadShell32
())
return
FALSE
;
pShellDDEInit
=
GetProcAddress
(
SHDOCVW_hshell32
,
(
LPCSTR
)
188
);
}
if
(
pShellDDEInit
)
return
pShellDDEInit
(
start
);
else
return
FALSE
;
}
/***********************************************************************
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment