Commit 9b55cc9e authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

winealsa.drv: Delete the g_sessions_lock critical section when unloading the dll.

parent 5f6a8c2b
......@@ -219,12 +219,19 @@ static inline SessionMgr *impl_from_IAudioSessionManager2(IAudioSessionManager2
BOOL WINAPI DllMain(HINSTANCE dll, DWORD reason, void *reserved)
{
if(reason == DLL_PROCESS_ATTACH){
switch (reason)
{
case DLL_PROCESS_ATTACH:
g_timer_q = CreateTimerQueue();
if(!g_timer_q)
return FALSE;
}
break;
case DLL_PROCESS_DETACH:
g_sessions_lock.DebugInfo->Spare[0] = 0;
DeleteCriticalSection(&g_sessions_lock);
break;
}
return TRUE;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment