Bugfix: free loaded library not before exit.

This commit is contained in:
Bertho Stultiens 1999-04-18 12:10:07 +00:00 committed by Alexandre Julliard
parent cebb2f1157
commit acf7da869f

View File

@ -1137,7 +1137,7 @@ BOOL WINAPI Shell32LibMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID fImpLoad)
case DLL_PROCESS_DETACH:
shell32_RefCount--;
if ( !shell32_RefCount )
{ FreeLibrary(hComctl32);
{
bShell32IsInitialized = FALSE;
if (pdesktopfolder)
@ -1145,6 +1145,7 @@ BOOL WINAPI Shell32LibMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID fImpLoad)
}
SIC_Destroy();
FreeLibrary(hComctl32);
/* this one is here to check if AddRef/Release is balanced */
if (shell32_ObjCount)