From ba8e2a3f9d5f4211ba54cc1f5c2b3354695a7cca Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Sun, 3 Jan 1999 16:18:33 +0000 Subject: [PATCH] 0 means success, all else failure for WaitForSingleObject. --- win32/console.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/win32/console.c b/win32/console.c index 31c9d879101..aa9a17f08f1 100644 --- a/win32/console.c +++ b/win32/console.c @@ -273,7 +273,7 @@ CONSOLE_get_input( HANDLE32 handle ) { DWORD res; char inchar; - if (!WaitForSingleObject( handle, 0 )) break; + if (WaitForSingleObject( handle, 0 )) break; if (!ReadFile( handle, &inchar, 1, &res, NULL )) break; buf = HeapReAlloc(GetProcessHeap(),0,buf,len+1); buf[len++]=inchar; -- 2.11.4.GIT