[NTOSKRNL]

- Add an ASSERT in KeRundownThread

svn path=/trunk/; revision=57466
This commit is contained in:
Thomas Faber 2012-10-03 19:01:47 +00:00
parent 28259f442f
commit b82de619ca

View file

@ -241,7 +241,7 @@ KeBoostPriorityThread(IN PKTHREAD Thread,
{ {
/* Lock the thread */ /* Lock the thread */
KiAcquireThreadLock(Thread); KiAcquireThreadLock(Thread);
/* Check again, and make sure there's not already a boost */ /* Check again, and make sure there's not already a boost */
if ((Thread->Priority < LOW_REALTIME_PRIORITY) && if ((Thread->Priority < LOW_REALTIME_PRIORITY) &&
!(Thread->PriorityDecrement)) !(Thread->PriorityDecrement))
@ -266,7 +266,7 @@ KeBoostPriorityThread(IN PKTHREAD Thread,
/* Release thread lock */ /* Release thread lock */
KiReleaseThreadLock(Thread); KiReleaseThreadLock(Thread);
} }
/* Release the dispatcher lokc */ /* Release the dispatcher lokc */
KiReleaseDispatcherLock(OldIrql); KiReleaseDispatcherLock(OldIrql);
} }
@ -457,6 +457,7 @@ KeRundownThread(VOID)
{ {
/* Get the Mutant */ /* Get the Mutant */
Mutant = CONTAINING_RECORD(NextEntry, KMUTANT, MutantListEntry); Mutant = CONTAINING_RECORD(NextEntry, KMUTANT, MutantListEntry);
ASSERT_MUTANT(Mutant);
/* Make sure it's not terminating with APCs off */ /* Make sure it's not terminating with APCs off */
if (Mutant->ApcDisable) if (Mutant->ApcDisable)