mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 03:40:51 +00:00
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)
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue