https://git.reactos.org/?p=reactos.git;a=commitdiff;h=08ed0988ff03964ef001674b1141552780bc6fc8

commit 08ed0988ff03964ef001674b1141552780bc6fc8
Author:     Hermès Bélusca-Maïto <hermes.belusca-ma...@reactos.org>
AuthorDate: Fri Dec 6 20:47:23 2024 +0100
Commit:     Hermès Bélusca-Maïto <hermes.belusca-ma...@reactos.org>
CommitDate: Sat Dec 14 23:33:49 2024 +0100

    [NTOS:KE] KeRemoveQueueDpc(): Use KeRestoreInterrupts()
---
 ntoskrnl/ke/dpc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ntoskrnl/ke/dpc.c b/ntoskrnl/ke/dpc.c
index 04d45fe1665..39e2c16b9d7 100644
--- a/ntoskrnl/ke/dpc.c
+++ b/ntoskrnl/ke/dpc.c
@@ -905,7 +905,7 @@ KeRemoveQueueDpc(IN PKDPC Dpc)
     }
 
     /* Re-enable interrupts */
-    if (Enable) _enable();
+    KeRestoreInterrupts(Enable);
 
     /* Return if the DPC was in the queue or not */
     return DpcData ? TRUE : FALSE;

Reply via email to