Experimental fix for `psftp-hang'. (Experimental only in that I haven't thought
[u/mdw/putty] / windows / winsftp.c
index 5293e00..f3c0a6f 100644 (file)
@@ -490,8 +490,7 @@ int do_eventsel_loop(HANDLE other_event)
     else
        otherindex = -1;
 
-    n = MsgWaitForMultipleObjects(nallhandles, handles, FALSE, ticks,
-                                 QS_POSTMESSAGE);
+    n = WaitForMultipleObjects(nallhandles, handles, FALSE, ticks);
 
     if ((unsigned)(n - WAIT_OBJECT_0) < (unsigned)nhandles) {
        handle_got_event(handles[n - WAIT_OBJECT_0]);