You can't wait for 0 objects

svn path=/trunk/; revision=11036
This commit is contained in:
Gé van Geldorp 2004-09-24 20:26:43 +00:00
parent 4d0a1d7cea
commit 29df1f045e

View file

@ -495,6 +495,8 @@ KeWaitForMultipleObjects(ULONG Count,
DPRINT("Entering KeWaitForMultipleObjects(Count %lu Object[] %p) "
"PsGetCurrentThread() %x\n", Count, Object, PsGetCurrentThread());
assert(0 < Count && Count <= EX_MAXIMUM_WAIT_OBJECTS);
CurrentThread = KeGetCurrentThread();
WaitIrql = KeGetCurrentIrql();
@ -745,6 +747,8 @@ NtWaitForMultipleObjects(IN ULONG Count,
if (Count > EX_MAXIMUM_WAIT_OBJECTS)
return STATUS_UNSUCCESSFUL;
if (0 == Count)
return STATUS_INVALID_PARAMETER;
if (UnsafeTime)
{