ws2_32: Delete the static critical section when unloading the dll.

Francois Gouget fgouget at codeweavers.com
Thu Nov 17 02:52:09 CST 2011


---
 dlls/ws2_32/socket.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/ws2_32/socket.c b/dlls/ws2_32/socket.c
index fe645c1..e345e87 100644
--- a/dlls/ws2_32/socket.c
+++ b/dlls/ws2_32/socket.c
@@ -866,6 +866,7 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID fImpLoad)
         break;
     case DLL_PROCESS_DETACH:
         free_per_thread_data();
+        DeleteCriticalSection(&csWSgetXXXbyYYY);
         num_startup = 0;
         break;
     case DLL_THREAD_DETACH:
-- 
1.7.7.1



More information about the wine-patches mailing list