WaitForMultipleObjectsEx passed WaitAny for WaitAll waits and vice versa

svn path=/trunk/; revision=4207
This commit is contained in:
Gunnar Dalsnes 2003-02-27 15:40:46 +00:00
parent dd41cf2e27
commit d295bac408

View file

@ -1,4 +1,4 @@
/* $Id: wait.c,v 1.19 2003/01/15 21:24:36 chorns Exp $ /* $Id: wait.c,v 1.20 2003/02/27 15:40:46 gdalsnes Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS system libraries * PROJECT: ReactOS system libraries
@ -74,7 +74,7 @@ WaitForMultipleObjects(DWORD nCount,
{ {
return WaitForMultipleObjectsEx(nCount, return WaitForMultipleObjectsEx(nCount,
lpHandles, lpHandles,
bWaitAll ? WaitAll : WaitAny, bWaitAll,
dwMilliseconds, dwMilliseconds,
FALSE); FALSE);
} }
@ -105,7 +105,7 @@ WaitForMultipleObjectsEx(DWORD nCount,
errCode = NtWaitForMultipleObjects (nCount, errCode = NtWaitForMultipleObjects (nCount,
(PHANDLE)lpHandles, (PHANDLE)lpHandles,
(CINT)bWaitAll, bWaitAll ? WaitAll : WaitAny,
(BOOLEAN)bAlertable, (BOOLEAN)bAlertable,
TimePtr); TimePtr);