winealsa.drv: Delete the g_sessions_lock critical section when unloading the dll.
This commit is contained in:
parent
5f6a8c2b60
commit
9b55cc9e6f
|
@ -219,12 +219,19 @@ static inline SessionMgr *impl_from_IAudioSessionManager2(IAudioSessionManager2
|
||||||
|
|
||||||
BOOL WINAPI DllMain(HINSTANCE dll, DWORD reason, void *reserved)
|
BOOL WINAPI DllMain(HINSTANCE dll, DWORD reason, void *reserved)
|
||||||
{
|
{
|
||||||
if(reason == DLL_PROCESS_ATTACH){
|
switch (reason)
|
||||||
|
{
|
||||||
|
case DLL_PROCESS_ATTACH:
|
||||||
g_timer_q = CreateTimerQueue();
|
g_timer_q = CreateTimerQueue();
|
||||||
if(!g_timer_q)
|
if(!g_timer_q)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
break;
|
||||||
|
|
||||||
|
case DLL_PROCESS_DETACH:
|
||||||
|
g_sessions_lock.DebugInfo->Spare[0] = 0;
|
||||||
|
DeleteCriticalSection(&g_sessions_lock);
|
||||||
|
break;
|
||||||
|
}
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue