[NTOS:KDBG] Correctly balance KeStackAttachProcess with KeUnstackDetachProcess, instead of KeDetachProcess.

This commit is contained in:
Hermès Bélusca-Maïto
2023-04-11 00:44:11 +02:00
parent 579eab8a31
commit fdf4814ebb
+1 -1
View File
@@ -202,7 +202,7 @@ KdbpOverwriteInstruction(
/* Detach from process */
if (CurrentProcess != Process)
{
KeDetachProcess();
KeUnstackDetachProcess(&ApcState);
}
return Status;