mirror of
https://github.com/VincentWei/MiniGUI.git
synced 2026-09-25 19:13:46 +08:00
Fix a bug in PeekMessageEx
This commit is contained in:
@@ -953,6 +953,14 @@ checkagain:
|
||||
sem_wait (&pMsgQueue->wait);
|
||||
}
|
||||
|
||||
goto checkagain;
|
||||
}
|
||||
else {
|
||||
/* no message, wait again. */
|
||||
if (pMsgQueue->OnIdle && !pMsgQueue->OnIdle (pMsgQueue, FALSE)) {
|
||||
handle_idle_message (pMsgQueue);
|
||||
}
|
||||
|
||||
goto checkagain;
|
||||
}
|
||||
#else /* defined _MGHAVE_VIRTUAL_WINDOW */
|
||||
@@ -964,6 +972,11 @@ checkagain:
|
||||
}
|
||||
goto checkagain;
|
||||
}
|
||||
else {
|
||||
if (!pMsgQueue->OnIdle (pMsgQueue, TRUE)) {
|
||||
handle_idle_message (pMsgQueue);
|
||||
}
|
||||
}
|
||||
#endif /* not defined _MGHAVE_VIRTUAL_WINDOW */
|
||||
|
||||
/* no message */
|
||||
|
||||
Reference in New Issue
Block a user