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

Francois Gouget fgouget at codeweavers.com
Wed Nov 16 09:31:35 CST 2011


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

diff --git a/dlls/dxgi/dxgi_main.c b/dlls/dxgi/dxgi_main.c
index 36e3326..c9d6f2e 100644
--- a/dlls/dxgi/dxgi_main.c
+++ b/dlls/dxgi/dxgi_main.c
@@ -54,6 +54,7 @@ static void dxgi_main_cleanup(void)
     dxgi_main.d3d10core = NULL;
 
     LeaveCriticalSection(&dxgi_cs);
+    DeleteCriticalSection(&dxgi_cs);
 }
 
 BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv)
-- 
1.7.7.1




More information about the wine-patches mailing list