diff --git a/ntoskrnl/kd64/kdapi.c b/ntoskrnl/kd64/kdapi.c index 76f6786c112..dca8cc73cc2 100644 --- a/ntoskrnl/kd64/kdapi.c +++ b/ntoskrnl/kd64/kdapi.c @@ -1952,7 +1952,8 @@ KdExitDebugger(IN BOOLEAN Enable) { ULONG TimeSlip; - /* Restore the state and unlock the port */ + /* Reset the debugger entered flag, restore the port state and unlock it */ + KdEnteredDebugger = FALSE; KdRestore(FALSE); if (KdpPortLocked) KdpPortUnlock();