Commit 493a3a0f authored by Erich Hoover's avatar Erich Hoover Committed by Alexandre Julliard

quartz: Make sure pin state cannot change while a flush is in progress.

parent 484c952c
......@@ -387,6 +387,9 @@ static void PullPin_Flush(PullPin *This)
if (This->pReader)
{
/* Do not allow state to change while flushing */
EnterCriticalSection(This->pin.pCritSec);
/* Flush outstanding samples */
IAsyncReader_BeginFlush(This->pReader);
......@@ -405,6 +408,8 @@ static void PullPin_Flush(PullPin *This)
}
IAsyncReader_EndFlush(This->pReader);
LeaveCriticalSection(This->pin.pCritSec);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment