quartz: Fix race condition on EndOfStream between csRenderLock and filter.csFilter.

This commit is contained in:
Erich E. Hoover 2014-07-17 10:30:19 -06:00 committed by Alexandre Julliard
parent a9325037b5
commit 126a420c56

View File

@ -254,8 +254,8 @@ static HRESULT DSoundRender_HandleEndOfStream(DSoundRenderImpl *This)
LeaveCriticalSection(&This->renderer.filter.csFilter);
LeaveCriticalSection(&This->renderer.csRenderLock);
WaitForSingleObject(This->blocked, 10);
EnterCriticalSection(&This->renderer.filter.csFilter);
EnterCriticalSection(&This->renderer.csRenderLock);
EnterCriticalSection(&This->renderer.filter.csFilter);
This->in_loop = 0;
}