diff --git a/reactos/ntoskrnl/ke/i386/irq.c b/reactos/ntoskrnl/ke/i386/irq.c index 9f110201348..a52e83b60d0 100644 --- a/reactos/ntoskrnl/ke/i386/irq.c +++ b/reactos/ntoskrnl/ke/i386/irq.c @@ -461,7 +461,7 @@ KeConnectInterrupt(PKINTERRUPT InterruptObject) Vector = InterruptObject->Vector; - if (Vector < IRQ_BASE && Vector >= IRQ_BASE + NR_IRQS) + if (Vector < IRQ_BASE || Vector >= IRQ_BASE + NR_IRQS) return FALSE; Vector -= IRQ_BASE;