https://git.reactos.org/?p=reactos.git;a=commitdiff;h=fdf4814ebb38d32634929…
commit fdf4814ebb38d32634929766dd53c06a6873d399
Author: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
AuthorDate: Thu Apr 6 03:55:20 2023 +0200
Commit: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
CommitDate: Tue Apr 11 00:44:11 2023 +0200
[NTOS:KDBG] Correctly balance KeStackAttachProcess with KeUnstackDetachProcess,
instead of KeDetachProcess.
---
ntoskrnl/kdbg/kdb.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ntoskrnl/kdbg/kdb.c b/ntoskrnl/kdbg/kdb.c
index 3c663cbddbc..c1ed2d0a9d7 100644
--- a/ntoskrnl/kdbg/kdb.c
+++ b/ntoskrnl/kdbg/kdb.c
@@ -202,7 +202,7 @@ KdbpOverwriteInstruction(
/* Detach from process */
if (CurrentProcess != Process)
{
- KeDetachProcess();
+ KeUnstackDetachProcess(&ApcState);
}
return Status;