Francois Gouget : openal32: Delete the static critical section when unloading the dll.

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


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

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

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

---

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

diff --git a/dlls/openal32/openal.c b/dlls/openal32/openal.c
index ec4149c..d3ff07d 100644
--- a/dlls/openal32/openal.c
+++ b/dlls/openal32/openal.c
@@ -106,6 +106,8 @@ BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved )
         LOADFUNC(alcGetThreadContext);
 #undef LOADFUNC
         break;
+    case DLL_PROCESS_DETACH:
+        DeleteCriticalSection(&openal_cs);
     }
 
     return TRUE;




More information about the wine-cvs mailing list