From 8f22c7534c2290a117142213a824a33679f983f9 Mon Sep 17 00:00:00 2001 From: Filip Navara Date: Tue, 8 Mar 2005 23:15:34 +0000 Subject: [PATCH] Fix failure case in IoConnectInterrupt. (Now really) svn path=/trunk/; revision=13895 --- reactos/ntoskrnl/io/irq.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/reactos/ntoskrnl/io/irq.c b/reactos/ntoskrnl/io/irq.c index 61a57ad8d9c..6b0cd50524a 100644 --- a/reactos/ntoskrnl/io/irq.c +++ b/reactos/ntoskrnl/io/irq.c @@ -1,4 +1,4 @@ -/* $Id:$ +/* $Id$ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS kernel @@ -121,7 +121,10 @@ IoConnectInterrupt(PKINTERRUPT* InterruptObject, { for (i = 0; i < count; i++) { - KeDisconnectInterrupt(&Interrupt[i]); + if (ProcessorEnableMask & (1 << i)) + { + KeDisconnectInterrupt(&Interrupt[i]); + } } ExFreePool(Interrupt); return STATUS_INVALID_PARAMETER;