From d6b7b7b6f01e79e6721ff5db721e72133db7e091 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Thu, 16 May 2013 12:53:59 +0200 Subject: [PATCH] openal32: Don't bother to delete critical sections at process exit. --- dlls/openal32/openal.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/openal32/openal.c b/dlls/openal32/openal.c index d3ff07d68aa..5a4e1e71e36 100644 --- a/dlls/openal32/openal.c +++ b/dlls/openal32/openal.c @@ -107,6 +107,7 @@ BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved ) #undef LOADFUNC break; case DLL_PROCESS_DETACH: + if (reserved) break; DeleteCriticalSection(&openal_cs); } -- 2.11.4.GIT