Commit 9510f979 authored by Alexandre Julliard's avatar Alexandre Julliard

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

parent 82cbbbdb
......@@ -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);
}
......
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