Author: mnordell
Date: Wed Oct 3 19:51:22 2012
New Revision: 57468
URL:
http://svn.reactos.org/svn/reactos?rev=57468&view=rev
Log:
[NTOSKERNEL] Stop KeRundownThread from bugchecking on at least CTRL_C for console app.
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:51:22 2012
@@ -470,6 +470,9 @@
0);
}
+ /* Move on, but save NextEntry before we remove */
+ NextEntry = NextEntry->Flink;
+
/* Now we can remove it */
RemoveEntryList(&Mutant->MutantListEntry);
@@ -484,9 +487,6 @@
/* Wake the Mutant */
KiWaitTest(&Mutant->Header, MUTANT_INCREMENT);
}
-
- /* Move on */
- NextEntry = NextEntry->Flink;
}
/* Release the Lock */