Commit b785ce12 authored by Juergen Schmied's avatar Juergen Schmied Committed by Alexandre Julliard

Fixed crash in detach sequence.

parent 1e0eaed1
......@@ -857,10 +857,6 @@ BOOL WINAPI Shell32LibMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID fImpLoad)
case DLL_PROCESS_DETACH:
shell32_RefCount--;
pOleUninitialize();
FreeLibrary(hOle32);
FreeLibrary(hComctl32);
if ( !shell32_RefCount )
{
shell32_hInstance = 0;
......@@ -879,6 +875,10 @@ BOOL WINAPI Shell32LibMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID fImpLoad)
WARN_(shell)("leaving with %u objects left (memory leak)\n", shell32_ObjCount);
}
}
FreeLibrary(hOle32);
FreeLibrary(hComctl32);
TRACE_(shell)("refcount=%u objcount=%u \n", shell32_RefCount, shell32_ObjCount);
break;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment