comctl32: Process messages while waiting for the animation thread to finish.
This commit is contained in:
parent
82cbbbdb46
commit
9510f97935
|
@ -161,7 +161,7 @@ static BOOL ANIMATE_DoStop(ANIMATE_INFO *infoPtr)
|
||||||
if (infoPtr->threadId != GetCurrentThreadId())
|
if (infoPtr->threadId != GetCurrentThreadId())
|
||||||
{
|
{
|
||||||
LeaveCriticalSection(&infoPtr->cs); /* leave it a chance to run */
|
LeaveCriticalSection(&infoPtr->cs); /* leave it a chance to run */
|
||||||
WaitForSingleObject( handle, INFINITE );
|
MsgWaitForMultipleObjects( 1, &handle, FALSE, INFINITE, QS_ALLINPUT );
|
||||||
TRACE("animation thread stopped\n");
|
TRACE("animation thread stopped\n");
|
||||||
EnterCriticalSection(&infoPtr->cs);
|
EnterCriticalSection(&infoPtr->cs);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue