Author: tfaber
Date: Wed Oct 3 19:01:47 2012
New Revision: 57466
URL:
http://svn.reactos.org/svn/reactos?rev=57466&view=rev
Log:
[NTOSKRNL]
- Add an ASSERT in KeRundownThread
Modified:
trunk/reactos/ntoskrnl/ke/thrdobj.c
Modified: trunk/reactos/ntoskrnl/ke/thrdobj.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ke/thrdobj.c?rev=…
==============================================================================
--- trunk/reactos/ntoskrnl/ke/thrdobj.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/ke/thrdobj.c [iso-8859-1] Wed Oct 3 19:01:47 2012
@@ -241,7 +241,7 @@
{
/* Lock the thread */
KiAcquireThreadLock(Thread);
-
+
/* Check again, and make sure there's not already a boost */
if ((Thread->Priority < LOW_REALTIME_PRIORITY) &&
!(Thread->PriorityDecrement))
@@ -266,7 +266,7 @@
/* Release thread lock */
KiReleaseThreadLock(Thread);
}
-
+
/* Release the dispatcher lokc */
KiReleaseDispatcherLock(OldIrql);
}
@@ -457,6 +457,7 @@
{
/* Get the Mutant */
Mutant = CONTAINING_RECORD(NextEntry, KMUTANT, MutantListEntry);
+ ASSERT_MUTANT(Mutant);
/* Make sure it's not terminating with APCs off */
if (Mutant->ApcDisable)