fixed fatal typo in wxYieldForCommandsOnly

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23630 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2003-09-16 22:48:46 +00:00
parent afbdbdb491
commit dd7ebf8b75

View File

@ -1749,7 +1749,7 @@ static void wxYieldForCommandsOnly()
MSG msg;
while ( ::PeekMessage(&msg, (HWND)0, WM_COMMAND, WM_COMMAND, PM_REMOVE) )
{
if ( msg.message != WM_QUIT )
if ( msg.message == WM_QUIT )
{
// if we retrieved a WM_QUIT, insert back into the message queue.
::PostQuitMessage(0);