Win32OperatingSystem.st
changeset 21256 49d5f9d3c9a4
parent 21241 71f5ce80b2ce
child 21287 38f177ccece5
child 21330 9f46467ddc07
--- a/Win32OperatingSystem.st	Sat Jan 14 20:06:26 2017 +0100
+++ b/Win32OperatingSystem.st	Mon Jan 16 16:44:41 2017 +0100
@@ -12235,17 +12235,17 @@
             }
         }
 
-        if (res == numHandles) {
-            // vmwait() added an IRQ event to the handles, and this one has been triggered
-            if (1 /* @global(InfoPrinting) == true */) {
-                console_fprintf(stderr, "Win32OS [info]: plugIn event has been handled\n");
+        if ((res < 0) || (res >= numHandles)) {
+            if (res == numHandles) {
+                // vmwait() added an IRQ event to the handles, and this one has been triggered
+                if (1 /* @global(InfoPrinting) == true */) {
+                    console_fprintf(stderr, "Win32OS [info]: plugIn event has been handled\n");
+                }
+            } else {
+                console_printf("- res=%d error1 %d\n", res, GetLastError());
             }
             goto done;
         }
-        if ((res < 0) || (res >= numHandles)) {
-            console_printf("- res=%d error1 %d\n", res, GetLastError());
-            goto done;
-        }
 
         idx = retArray[res];
         cntAll++;
@@ -12389,6 +12389,8 @@
      or not supported by OS
     "
     ^ self primitiveFailed
+
+    "Modified: / 15-01-2017 / 03:04:41 / stefan"
 !
 
 setBlocking:aBoolean on:fd