mirror of
https://github.com/reactos/reactos.git
synced 2025-06-03 16:30:26 +00:00
[NTOSKRNL]
- Assert against waiting at DISPATCH_LEVEL svn path=/trunk/; revision=56747
This commit is contained in:
parent
8479f39975
commit
e3eb92dddf
1 changed files with 17 additions and 9 deletions
|
@ -417,6 +417,10 @@ KeWaitForSingleObject(IN PVOID Object,
|
|||
PLARGE_INTEGER OriginalDueTime = Timeout;
|
||||
ULONG Hand = 0;
|
||||
|
||||
ASSERT(KeGetCurrentIrql() < DISPATCH_LEVEL ||
|
||||
(KeGetCurrentIrql() == DISPATCH_LEVEL &&
|
||||
Timeout && Timeout->QuadPart == 0));
|
||||
|
||||
/* Check if the lock is already held */
|
||||
if (!Thread->WaitNext) goto WaitStart;
|
||||
|
||||
|
@ -583,6 +587,10 @@ KeWaitForMultipleObjects(IN ULONG Count,
|
|||
LARGE_INTEGER DueTime = {{0}}, NewDueTime, InterruptTime;
|
||||
ULONG Index, Hand = 0;
|
||||
|
||||
ASSERT(KeGetCurrentIrql() < DISPATCH_LEVEL ||
|
||||
(KeGetCurrentIrql() == DISPATCH_LEVEL &&
|
||||
Timeout && Timeout->QuadPart == 0));
|
||||
|
||||
/* Make sure the Wait Count is valid */
|
||||
if (!WaitBlockArray)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue