quartz: Make the pullpin forward the BeginFlush before doing its own flushing.

This commit is contained in:
Maarten Lankhorst 2008-04-07 22:34:21 -07:00 committed by Alexandre Julliard
parent 4763e83b60
commit 994af69cac
1 changed files with 6 additions and 2 deletions

View File

@ -1595,6 +1595,12 @@ HRESULT WINAPI PullPin_BeginFlush(IPin * iface)
PullPin *This = (PullPin *)iface;
TRACE("(%p)->()\n", iface);
EnterCriticalSection(This->pin.pCritSec);
{
SendFurther( iface, deliver_beginflush, NULL, NULL );
}
LeaveCriticalSection(This->pin.pCritSec);
EnterCriticalSection(&This->thread_lock);
{
if (This->state == State_Running)
@ -1607,8 +1613,6 @@ HRESULT WINAPI PullPin_BeginFlush(IPin * iface)
EnterCriticalSection(This->pin.pCritSec);
{
This->fnCleanProc(This->pin.pUserData);
SendFurther( iface, deliver_beginflush, NULL, NULL );
}
LeaveCriticalSection(This->pin.pCritSec);