comctl32: Process messages while waiting for the animation thread to finish.

This commit is contained in:
Alexandre Julliard 2008-02-11 20:16:35 +01:00
parent 82cbbbdb46
commit 9510f97935
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}