Commit 2aa3d2b0 authored by Alexandre Julliard's avatar Alexandre Julliard

setupapi: Don't bother to free libraries at process exit.

parent cbb2792e
...@@ -114,14 +114,6 @@ static BOOL LoadCABINETDll(void) ...@@ -114,14 +114,6 @@ static BOOL LoadCABINETDll(void)
return TRUE; return TRUE;
} }
static void UnloadCABINETDll(void)
{
if (CABINET_hInstance) {
FreeLibrary(CABINET_hInstance);
CABINET_hInstance = 0;
}
}
/* FDICreate callbacks */ /* FDICreate callbacks */
static void * CDECL sc_cb_alloc(ULONG cb) static void * CDECL sc_cb_alloc(ULONG cb)
...@@ -701,7 +693,8 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) ...@@ -701,7 +693,8 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
SETUPAPI_hInstance = hinstDLL; SETUPAPI_hInstance = hinstDLL;
break; break;
case DLL_PROCESS_DETACH: case DLL_PROCESS_DETACH:
UnloadCABINETDll(); if (lpvReserved) break;
if (CABINET_hInstance) FreeLibrary(CABINET_hInstance);
break; 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