mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
You can't wait for 0 objects
svn path=/trunk/; revision=11036
This commit is contained in:
parent
4d0a1d7cea
commit
29df1f045e
1 changed files with 4 additions and 0 deletions
|
@ -495,6 +495,8 @@ KeWaitForMultipleObjects(ULONG Count,
|
||||||
DPRINT("Entering KeWaitForMultipleObjects(Count %lu Object[] %p) "
|
DPRINT("Entering KeWaitForMultipleObjects(Count %lu Object[] %p) "
|
||||||
"PsGetCurrentThread() %x\n", Count, Object, PsGetCurrentThread());
|
"PsGetCurrentThread() %x\n", Count, Object, PsGetCurrentThread());
|
||||||
|
|
||||||
|
assert(0 < Count && Count <= EX_MAXIMUM_WAIT_OBJECTS);
|
||||||
|
|
||||||
CurrentThread = KeGetCurrentThread();
|
CurrentThread = KeGetCurrentThread();
|
||||||
WaitIrql = KeGetCurrentIrql();
|
WaitIrql = KeGetCurrentIrql();
|
||||||
|
|
||||||
|
@ -745,6 +747,8 @@ NtWaitForMultipleObjects(IN ULONG Count,
|
||||||
|
|
||||||
if (Count > EX_MAXIMUM_WAIT_OBJECTS)
|
if (Count > EX_MAXIMUM_WAIT_OBJECTS)
|
||||||
return STATUS_UNSUCCESSFUL;
|
return STATUS_UNSUCCESSFUL;
|
||||||
|
if (0 == Count)
|
||||||
|
return STATUS_INVALID_PARAMETER;
|
||||||
|
|
||||||
if (UnsafeTime)
|
if (UnsafeTime)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue