0 means success, all else failure for WaitForSingleObject.
This commit is contained in:
parent
d8935f10c0
commit
ba8e2a3f9d
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue