From 7f3fa7c8588f0293538927aefaa1f4d9fd286d6c Mon Sep 17 00:00:00 2001 From: Francois Gouget Date: Thu, 17 Nov 2011 09:53:26 +0100 Subject: [PATCH] openal32: Delete the static critical section when unloading the dll. --- dlls/openal32/openal.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/openal32/openal.c b/dlls/openal32/openal.c index ec4149ceacb..d3ff07d68aa 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;