mirror of
https://github.com/reactos/reactos.git
synced 2025-07-08 08:57:54 +00:00
- 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.
svn path=/trunk/; revision=41640
This commit is contained in:
parent
fea1ac4782
commit
74ddcbe68d
1 changed files with 2 additions and 2 deletions
|
@ -535,7 +535,7 @@ KeDetachProcess(VOID)
|
||||||
KiReleaseApcLockFromDpcLevel(&ApcLock);
|
KiReleaseApcLockFromDpcLevel(&ApcLock);
|
||||||
|
|
||||||
/* Swap Processes */
|
/* Swap Processes */
|
||||||
KiSwapProcess(Thread->ApcState.Process, Thread->ApcState.Process);
|
KiSwapProcess(Thread->ApcState.Process, Process);
|
||||||
|
|
||||||
/* Exit the dispatcher */
|
/* Exit the dispatcher */
|
||||||
KiExitDispatcher(ApcLock.OldIrql);
|
KiExitDispatcher(ApcLock.OldIrql);
|
||||||
|
@ -705,7 +705,7 @@ KeUnstackDetachProcess(IN PRKAPC_STATE ApcState)
|
||||||
KiReleaseApcLockFromDpcLevel(&ApcLock);
|
KiReleaseApcLockFromDpcLevel(&ApcLock);
|
||||||
|
|
||||||
/* Swap Processes */
|
/* Swap Processes */
|
||||||
KiSwapProcess(Thread->ApcState.Process, Thread->ApcState.Process);
|
KiSwapProcess(Thread->ApcState.Process, Process);
|
||||||
|
|
||||||
/* Exit the dispatcher */
|
/* Exit the dispatcher */
|
||||||
KiExitDispatcher(ApcLock.OldIrql);
|
KiExitDispatcher(ApcLock.OldIrql);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue