0 means success, all else failure for WaitForSingleObject.

This commit is contained in:
Marcus Meissner 1999-01-03 16:18:33 +00:00 committed by Alexandre Julliard
parent d8935f10c0
commit ba8e2a3f9d
1 changed files with 1 additions and 1 deletions

View File

@ -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;