X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1bf77ee556a5418059139305e9edb05bde9b8a1d..d0e278d98e9ecc0f78943a662fca855811f3bea7:/src/msw/window.cpp?ds=sidebyside 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);