winspool: Don't bother to delete critical sections at process exit.
This commit is contained in:
parent
d47d03d26a
commit
03041b93ba
|
@ -104,20 +104,6 @@ BOOL load_backend(void)
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
/******************************************************************************
|
||||
* unload_backend [internal]
|
||||
*
|
||||
*/
|
||||
static void unload_backend(void)
|
||||
{
|
||||
EnterCriticalSection(&backend_cs);
|
||||
backend = NULL;
|
||||
FreeLibrary(hlocalspl);
|
||||
LeaveCriticalSection(&backend_cs);
|
||||
DeleteCriticalSection(&backend_cs);
|
||||
}
|
||||
|
||||
|
||||
/******************************************************************************
|
||||
* DllMain
|
||||
*
|
||||
|
@ -135,7 +121,9 @@ BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD reason, LPVOID lpReserved)
|
|||
break;
|
||||
}
|
||||
case DLL_PROCESS_DETACH:
|
||||
unload_backend();
|
||||
if (lpReserved) break;
|
||||
DeleteCriticalSection(&backend_cs);
|
||||
FreeLibrary(hlocalspl);
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue