[NTOSKERNEL] Stop KeRundownThread from bugchecking on at least CTRL_C for console...
authorMike Nordell <tamlin@algonet.se>
Wed, 3 Oct 2012 19:51:22 +0000 (19:51 +0000)
committerMike Nordell <tamlin@algonet.se>
Wed, 3 Oct 2012 19:51:22 +0000 (19:51 +0000)
svn path=/trunk/; revision=57468

reactos/ntoskrnl/ke/thrdobj.c

index aedc5ba..57f7a68 100644 (file)
@@ -470,6 +470,9 @@ KeRundownThread(VOID)
                          0);
         }
 
+        /* Move on, but save NextEntry before we remove */
+        NextEntry = NextEntry->Flink;
+
         /* Now we can remove it */
         RemoveEntryList(&Mutant->MutantListEntry);
 
@@ -484,9 +487,6 @@ KeRundownThread(VOID)
             /* Wake the Mutant */
             KiWaitTest(&Mutant->Header, MUTANT_INCREMENT);
         }
-
-        /* Move on */
-        NextEntry = NextEntry->Flink;
     }
 
     /* Release the Lock */