Skip to content

Commit 7068a79

Browse files
committed
[NTOS:KD64] Add a missing KdEnteredDebugger reset in KdExitDebugger()
1 parent 6b89a0d commit 7068a79

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ntoskrnl/kd64/kdapi.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1952,7 +1952,8 @@ KdExitDebugger(IN BOOLEAN Enable)
19521952
{
19531953
ULONG TimeSlip;
19541954

1955-
/* Restore the state and unlock the port */
1955+
/* Reset the debugger entered flag, restore the port state and unlock it */
1956+
KdEnteredDebugger = FALSE;
19561957
KdRestore(FALSE);
19571958
if (KdpPortLocked) KdpPortUnlock();
19581959

0 commit comments

Comments
 (0)