[ros-diffs] [sginsberg] 41640: - 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.

sginsberg at svn.reactos.org sginsberg at svn.reactos.org
Sun Jun 28 10:32:14 CEST 2009


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=41640&r1=41639&r2=41640&view=diff
==============================================================================
--- 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);



More information about the Ros-diffs mailing list