Fix latent deadlock in DSOUND_callback.
This commit is contained in:
parent
653510348a
commit
8325deaa33
|
@ -1030,7 +1030,7 @@ void CALLBACK DSOUND_callback(HWAVEOUT hwo, UINT msg, DWORD dwUser, DWORD dw1, D
|
||||||
/* queue new buffer if we have data for it */
|
/* queue new buffer if we have data for it */
|
||||||
if (inq>1) DSOUND_WaveQueue(This, inq-1);
|
if (inq>1) DSOUND_WaveQueue(This, inq-1);
|
||||||
#ifdef SYNC_CALLBACK
|
#ifdef SYNC_CALLBACK
|
||||||
LeaveCriticalSection(&(This->lock));
|
LeaveCriticalSection(&(This->mixlock));
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
TRACE("completed\n");
|
TRACE("completed\n");
|
||||||
|
|
Loading…
Reference in New Issue