From: Vadim Zeitlin Date: Tue, 16 Sep 2003 22:48:46 +0000 (+0000) Subject: fixed fatal typo in wxYieldForCommandsOnly X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/dd7ebf8b755c17112113bfb2b0744c08d13228cf?ds=inline fixed fatal typo in wxYieldForCommandsOnly git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23630 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/window.cpp b/src/msw/window.cpp index d20cd3d9e6..c1ff69c32e 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -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);