Skip to content

Instantly share code, notes, and snippets.

@mattn
Created July 31, 2012 02:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattn/3212747 to your computer and use it in GitHub Desktop.
Save mattn/3212747 to your computer and use it in GitHub Desktop.
diff -r 0fc0108517a8 src/os_win32.c
--- a/src/os_win32.c Sun Jul 29 12:55:32 2012 +0200
+++ b/src/os_win32.c Tue Jul 31 11:06:26 2012 +0900
@@ -3319,8 +3319,7 @@
{
TranslateMessage(&msg);
pDispatchMessage(&msg);
- }
- if (WaitForSingleObject(pi.hProcess, delay) != WAIT_TIMEOUT)
+ } else if (WaitForSingleObject(pi.hProcess, delay) != WAIT_TIMEOUT)
break;
/* We start waiting for a very short time and then increase it, so
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment