[NTOSKRNL]
authorThomas Faber <thomas.faber@reactos.org>
Wed, 3 Oct 2012 19:01:47 +0000 (19:01 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Wed, 3 Oct 2012 19:01:47 +0000 (19:01 +0000)
- Add an ASSERT in KeRundownThread

svn path=/trunk/; revision=57466

reactos/ntoskrnl/ke/thrdobj.c

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