Module: wine Branch: master Commit: 9510f97935f9c405d83fd47dee81c74383d90723 URL: http://source.winehq.org/git/wine.git/?a=commit;h=9510f97935f9c405d83fd47dee...
Author: Alexandre Julliard julliard@winehq.org Date: Mon Feb 11 20:16:35 2008 +0100
comctl32: Process messages while waiting for the animation thread to finish.
---
dlls/comctl32/animate.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/comctl32/animate.c b/dlls/comctl32/animate.c index e0730f8..057cc3e 100644 --- a/dlls/comctl32/animate.c +++ b/dlls/comctl32/animate.c @@ -161,7 +161,7 @@ static BOOL ANIMATE_DoStop(ANIMATE_INFO *infoPtr) if (infoPtr->threadId != GetCurrentThreadId()) { LeaveCriticalSection(&infoPtr->cs); /* leave it a chance to run */ - WaitForSingleObject( handle, INFINITE ); + MsgWaitForMultipleObjects( 1, &handle, FALSE, INFINITE, QS_ALLINPUT ); TRACE("animation thread stopped\n"); EnterCriticalSection(&infoPtr->cs); }