mirror of
https://github.com/reactos/reactos.git
synced 2025-06-06 01:40:36 +00:00
[NTOS] In KeWaitFor*Object(s) assert that the current IRQL is SYNCH_LEVEL. not DISPATCH_LEVEL, since acquiring the dispatcher lock raises to SYNCH_LEVEL, which is != DISPATCH_LEVEL on x64 and SMP builds.
This commit is contained in:
parent
ad2c15524d
commit
f944f3a6cd
1 changed files with 2 additions and 2 deletions
|
@ -431,7 +431,7 @@ KeWaitForSingleObject(IN PVOID Object,
|
|||
ULONG Hand = 0;
|
||||
|
||||
if (Thread->WaitNext)
|
||||
ASSERT(KeGetCurrentIrql() == DISPATCH_LEVEL);
|
||||
ASSERT(KeGetCurrentIrql() == SYNCH_LEVEL);
|
||||
else
|
||||
ASSERT(KeGetCurrentIrql() < DISPATCH_LEVEL ||
|
||||
(KeGetCurrentIrql() == DISPATCH_LEVEL &&
|
||||
|
@ -604,7 +604,7 @@ KeWaitForMultipleObjects(IN ULONG Count,
|
|||
ULONG Index, Hand = 0;
|
||||
|
||||
if (Thread->WaitNext)
|
||||
ASSERT(KeGetCurrentIrql() == DISPATCH_LEVEL);
|
||||
ASSERT(KeGetCurrentIrql() == SYNCH_LEVEL);
|
||||
else if (KeGetCurrentIrql() == DISPATCH_LEVEL &&
|
||||
(!Timeout || Timeout->QuadPart != 0))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue