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

Alexandre Julliard julliard at winehq.org
Wed Apr 9 05:31:30 CDT 2008


Module: wine
Branch: master
Commit: 994af69cac31bc53842ad13570bcce6797b89207
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=994af69cac31bc53842ad13570bcce6797b89207

Author: Maarten Lankhorst <m.b.lankhorst at gmail.com>
Date:   Mon Apr  7 22:34:21 2008 -0700

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

---

 dlls/quartz/pin.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/dlls/quartz/pin.c b/dlls/quartz/pin.c
index 8ec39be..7d54a51 100644
--- a/dlls/quartz/pin.c
+++ b/dlls/quartz/pin.c
@@ -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);
 




More information about the wine-cvs mailing list