projects
/
reactos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[CMAKE]
[reactos.git]
/
ntoskrnl
/
ke
/
thrdschd.c
diff --git
a/ntoskrnl/ke/thrdschd.c
b/ntoskrnl/ke/thrdschd.c
index
040073c
..
d100c3b
100644
(file)
--- a/
ntoskrnl/ke/thrdschd.c
+++ b/
ntoskrnl/ke/thrdschd.c
@@
-387,7
+387,7
@@
KiSwapThread(IN PKTHREAD CurrentThread,
WaitIrql = CurrentThread->WaitIrql;
/* Swap contexts */
WaitIrql = CurrentThread->WaitIrql;
/* Swap contexts */
- ApcState = KiSwapContext(
CurrentThread, Nex
tThread);
+ ApcState = KiSwapContext(
WaitIrql, Curren
tThread);
/* Get the wait status */
WaitStatus = CurrentThread->WaitStatus;
/* Get the wait status */
WaitStatus = CurrentThread->WaitStatus;
@@
-754,7
+754,7
@@
NtYieldExecution(VOID)
ASSERT(OldIrql <= DISPATCH_LEVEL);
/* Swap to new thread */
ASSERT(OldIrql <= DISPATCH_LEVEL);
/* Swap to new thread */
- KiSwapContext(
Thread, Next
Thread);
+ KiSwapContext(
APC_LEVEL,
Thread);
Status = STATUS_SUCCESS;
}
else
Status = STATUS_SUCCESS;
}
else