winspool: Don't bother to delete critical sections at process exit.

This commit is contained in:
Alexandre Julliard 2013-05-16 12:55:05 +02:00
parent d47d03d26a
commit 03041b93ba
1 changed files with 3 additions and 15 deletions

View File

@ -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;
}