Author: sginsberg
Date: Sat Jun 27 15:07:58 2009
New Revision: 41640
URL:
http://svn.reactos.org/svn/reactos?rev=41640&view=rev
Log:
- KeDetachProcess & KeUnstackDetachProcess: Fix a typo when swapping back to the
original process that would switch _from_ the original process to itself. We now properly
swap from the _current_ process.
Modified:
trunk/reactos/ntoskrnl/ke/procobj.c
Modified: trunk/reactos/ntoskrnl/ke/procobj.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ke/procobj.c?rev=…
==============================================================================
--- trunk/reactos/ntoskrnl/ke/procobj.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/ke/procobj.c [iso-8859-1] Sat Jun 27 15:07:58 2009
@@ -535,7 +535,7 @@
KiReleaseApcLockFromDpcLevel(&ApcLock);
/* Swap Processes */
- KiSwapProcess(Thread->ApcState.Process, Thread->ApcState.Process);
+ KiSwapProcess(Thread->ApcState.Process, Process);
/* Exit the dispatcher */
KiExitDispatcher(ApcLock.OldIrql);
@@ -705,7 +705,7 @@
KiReleaseApcLockFromDpcLevel(&ApcLock);
/* Swap Processes */
- KiSwapProcess(Thread->ApcState.Process, Thread->ApcState.Process);
+ KiSwapProcess(Thread->ApcState.Process, Process);
/* Exit the dispatcher */
KiExitDispatcher(ApcLock.OldIrql);