]> asedeno.scripts.mit.edu Git - PuTTY_svn.git/blobdiff - windows/window.c
Replace GetQueueStatus with PeekMessage(PM_NOREMOVE).
[PuTTY_svn.git] / windows / window.c
index 6baa45a79e95658bd0c3a2081858b45557c77a41..38c31dd4015e6b9a2ada8a2c160ff28022166825 100644 (file)
@@ -849,7 +849,8 @@ int WINAPI WinMain(HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show)
        int nhandles, n;
         DWORD timeout;
 
-        if (toplevel_callback_pending() || GetQueueStatus(QS_ALLINPUT)) {
+        if (toplevel_callback_pending() ||
+            PeekMessage(&msg, NULL, 0, 0, PM_NOREMOVE)) {
             /*
              * If we have anything we'd like to do immediately, set
              * the timeout for MsgWaitForMultipleObjects to zero so