From addb22e71d041a6889b1b4ffd49726e058b74665 Mon Sep 17 00:00:00 2001 From: Alex Ionescu Date: Thu, 12 Jan 2006 21:21:19 +0000 Subject: [PATCH] Set KernelApcPending == TRUE in KiCheckForKernelApcDelivery if we are at APC_LEVEL. This should hopefully fix some of those silent bugs. Thanks to Ignatich for poking me about it. svn path=/trunk/; revision=20820 --- reactos/ntoskrnl/ke/apc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/reactos/ntoskrnl/ke/apc.c b/reactos/ntoskrnl/ke/apc.c index fa0edf623f2..db5d57f575c 100644 --- a/reactos/ntoskrnl/ke/apc.c +++ b/reactos/ntoskrnl/ke/apc.c @@ -57,6 +57,7 @@ KiCheckForKernelApcDelivery(VOID) * be delivered now, but after the IRQL is lowered to passive * level again. */ + KeGetCurrentThread()->ApcState.KernelApcPending = TRUE; HalRequestSoftwareInterrupt(APC_LEVEL); } } -- 2.17.1