mirror of
https://github.com/reactos/wine.git
synced 2025-01-26 22:24:37 +00:00
shdocvw: Call DisableThreadLibraryCalls in DllMain.
This commit is contained in:
parent
3ce3dedfa9
commit
cf7a118a9e
@ -78,7 +78,7 @@ static HRESULT get_ieframe_object(REFCLSID rclsid, REFIID riid, void **ppv)
|
||||
*/
|
||||
HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, void **ppv)
|
||||
{
|
||||
TRACE("\n");
|
||||
TRACE("(%s %s %p)\n", debugstr_guid(rclsid), debugstr_guid(riid), ppv);
|
||||
|
||||
if(IsEqualGUID(&CLSID_WebBrowser, rclsid)
|
||||
|| IsEqualGUID(&CLSID_WebBrowser_V1, rclsid)
|
||||
@ -146,7 +146,8 @@ BOOL WINAPI DllMain(HINSTANCE hinst, DWORD fdwReason, LPVOID fImpLoad)
|
||||
TRACE("%p 0x%x %p\n", hinst, fdwReason, fImpLoad);
|
||||
switch (fdwReason)
|
||||
{
|
||||
case DLL_PROCESS_ATTACH:
|
||||
case DLL_PROCESS_ATTACH:
|
||||
DisableThreadLibraryCalls(hinst);
|
||||
break;
|
||||
case DLL_PROCESS_DETACH:
|
||||
if (fImpLoad) break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user