- fix wait functions for console handles

- bug 3273

svn path=/trunk/; revision=33687
This commit is contained in:
Johannes Anderwald 2008-05-25 07:05:34 +00:00
parent 73e46408e9
commit cdc5cb8cf5

View file

@ -66,7 +66,7 @@ WaitForSingleObjectEx(IN HANDLE hHandle,
}
/* Check for console handle */
if ((IsConsoleHandle(hHandle)) && (!VerifyConsoleIoHandle(hHandle)))
if ((IsConsoleHandle(hHandle)) && (VerifyConsoleIoHandle(hHandle)))
{
/* Get the real wait handle */
hHandle = GetConsoleInputWaitHandle();
@ -186,7 +186,7 @@ WaitForMultipleObjectsEx(IN DWORD nCount,
/* Check for console handle */
if ((IsConsoleHandle(HandleBuffer[i])) &&
(!VerifyConsoleIoHandle(HandleBuffer[i])))
(VerifyConsoleIoHandle(HandleBuffer[i])))
{
/* Get the real wait handle */
HandleBuffer[i] = GetConsoleInputWaitHandle();
@ -278,7 +278,7 @@ SignalObjectAndWait(IN HANDLE hObjectToSignal,
/* Check for console handle */
if ((IsConsoleHandle(hObjectToWaitOn)) &&
(!VerifyConsoleIoHandle(hObjectToWaitOn)))
(VerifyConsoleIoHandle(hObjectToWaitOn)))
{
/* Get the real wait handle */
hObjectToWaitOn = GetConsoleInputWaitHandle();