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

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


---
 dlls/msvideo.dll16/msvideo16.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/msvideo.dll16/msvideo16.c b/dlls/msvideo.dll16/msvideo16.c
index 93724c9..b729ccc 100644
--- a/dlls/msvideo.dll16/msvideo16.c
+++ b/dlls/msvideo.dll16/msvideo16.c
@@ -967,6 +967,7 @@ BOOL WINAPI VIDEO_LibMain(DWORD fdwReason, HINSTANCE hinstDLL, WORD ds,
     case DLL_PROCESS_ATTACH:
         break;
     case DLL_PROCESS_DETACH:
+        DeleteCriticalSection(&msvideo_cs);
         break;
     case DLL_THREAD_ATTACH:
     case DLL_THREAD_DETACH:
-- 
1.7.7.1




More information about the wine-patches mailing list