Must insert WM_QUIT back into the message queue if eaten

by wxYieldForCommandsOnly. Cures the taskbar sample GPF.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@18002 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2002-11-29 17:40:38 +00:00
parent d10de62799
commit de9e98335d

View File

@@ -1891,6 +1891,10 @@ static void wxYieldForCommandsOnly()
{
wxTheApp->DoMessage((WXMSG *)&msg);
}
// If we retrieved a WM_QUIT, insert back into the message queue.
if (msg.message == WM_QUIT)
::PostQuitMessage(0);
}
bool wxWindowMSW::DoPopupMenu(wxMenu *menu, int x, int y)