From c9f335e996b3aa0b0be395abe33af535222b88c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herm=C3=A8s=20B=C3=A9lusca-Ma=C3=AFto?= Date: Sun, 5 Sep 2021 02:47:43 +0200 Subject: [PATCH] [NTOS:KD64] KdPollBreakIn(): Use the KeRestoreInterrupts() inline. --- ntoskrnl/kd64/kdlock.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ntoskrnl/kd64/kdlock.c b/ntoskrnl/kd64/kdlock.c index 6b1512fa91b..74c671acca3 100644 --- a/ntoskrnl/kd64/kdlock.c +++ b/ntoskrnl/kd64/kdlock.c @@ -115,8 +115,8 @@ KdPollBreakIn(VOID) KeLowerIrql(OldIrql); } - /* Re-enable interrupts if they were enabled previously */ - if (Enable) _enable(); + /* Re-enable interrupts */ + KeRestoreInterrupts(Enable); } /* Tell the caller to do a break */