Author: nyadav
Date: Tue May 24 12:13:43 2011
New Revision: 51882
URL:
http://svn.reactos.org/svn/reactos?rev=51882&view=rev
Log:
Fix a Deadlock
Modified:
branches/nyadav-audio-branch/base/services/audiosrv2/audiosrv.c
Modified: branches/nyadav-audio-branch/base/services/audiosrv2/audiosrv.c
URL:
http://svn.reactos.org/svn/reactos/branches/nyadav-audio-branch/base/servic…
==============================================================================
--- branches/nyadav-audio-branch/base/services/audiosrv2/audiosrv.c [iso-8859-1]
(original)
+++ branches/nyadav-audio-branch/base/services/audiosrv2/audiosrv.c [iso-8859-1] Tue May
24 12:13:43 2011
@@ -269,7 +269,7 @@
MixerEngine * mixer = (MixerEngine *) param;
while(1)
{
- while(WaitForSingleObject(mixer->EventPool[0],100)!=0){if(mixer->dead)goto
DEAD;}
+ while(WaitForSingleObject(mixer->EventPool[1],100)!=0){if(mixer->dead)goto
DEAD;}
Playbuffer(mixer);
SetEvent(mixer->EventPool[0]);
}