ws2_32: Delete the static critical section when unloading the dll.
This commit is contained in:
parent
eb0576ba59
commit
c9ae82da93
|
@ -866,6 +866,7 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID fImpLoad)
|
||||||
break;
|
break;
|
||||||
case DLL_PROCESS_DETACH:
|
case DLL_PROCESS_DETACH:
|
||||||
free_per_thread_data();
|
free_per_thread_data();
|
||||||
|
DeleteCriticalSection(&csWSgetXXXbyYYY);
|
||||||
num_startup = 0;
|
num_startup = 0;
|
||||||
break;
|
break;
|
||||||
case DLL_THREAD_DETACH:
|
case DLL_THREAD_DETACH:
|
||||||
|
|
Loading…
Reference in New Issue