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

This commit is contained in:
Hermès Bélusca-Maïto 2023-04-06 03:55:20 +02:00
parent 579eab8a31
commit fdf4814ebb
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0

View file

@ -202,7 +202,7 @@ KdbpOverwriteInstruction(
/* Detach from process */
if (CurrentProcess != Process)
{
KeDetachProcess();
KeUnstackDetachProcess(&ApcState);
}
return Status;