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); }