From bc9ef013670267aceaad7a36cdb169aaf4598672 Mon Sep 17 00:00:00 2001 From: Justin Miller Date: Sun, 16 Nov 2025 09:11:50 -0800 Subject: [PATCH] [WDF] HACK: Workaround PCI causing DPCs to be flushed when system affinity is disabled --- .../wdf/shared/irphandlers/pnp/interruptobject.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/sdk/lib/drivers/wdf/shared/irphandlers/pnp/interruptobject.cpp b/sdk/lib/drivers/wdf/shared/irphandlers/pnp/interruptobject.cpp index 868d2cd62ed..9265cc1d794 100644 --- a/sdk/lib/drivers/wdf/shared/irphandlers/pnp/interruptobject.cpp +++ b/sdk/lib/drivers/wdf/shared/irphandlers/pnp/interruptobject.cpp @@ -1505,7 +1505,18 @@ Return Value: // synchronize against this interrupt. For KMDF this will flush DPCs and // for UMDF this will send a message to reflector to flush queued DPCs. // +#ifdef __REACTOS__ + /* + * This causes DPCs to be flushed when SystemAffinity is already disabled. + * To be clear this isn't the fault of KMDF, but instead it's the fault + * of our current PCI.sys due to how it's architected. + */ +#ifndef FX_IS_KERNEL_MODE FlushQueuedDpcs(); +#endif +#else + FlushQueuedDpcs(); +#endif #if FX_IS_KERNEL_MODE //