Francois Gouget : wined3d: Delete the static critical sections when unloading the dll.

Alexandre Julliard julliard at winehq.org
Thu Nov 17 12:52:35 CST 2011


Module: wine
Branch: master
Commit: 54bcda10e560b193b2add0428b30456bdc8c34a4
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=54bcda10e560b193b2add0428b30456bdc8c34a4

Author: Francois Gouget <fgouget at codeweavers.com>
Date:   Thu Nov 17 09:54:54 2011 +0100

wined3d: Delete the static critical sections when unloading the dll.

---

 dlls/wined3d/wined3d_main.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/dlls/wined3d/wined3d_main.c b/dlls/wined3d/wined3d_main.c
index 0533595..1b7e493 100644
--- a/dlls/wined3d/wined3d_main.c
+++ b/dlls/wined3d/wined3d_main.c
@@ -382,6 +382,8 @@ static BOOL wined3d_dll_destroy(HINSTANCE hInstDLL)
     HeapFree(GetProcessHeap(), 0, wined3d_settings.logo);
     UnregisterClassA(WINED3D_OPENGL_WINDOW_CLASS_NAME, hInstDLL);
 
+    DeleteCriticalSection(&wined3d_wndproc_cs);
+    DeleteCriticalSection(&wined3d_cs);
     return TRUE;
 }
 




More information about the wine-cvs mailing list