Fix failure case in IoConnectInterrupt. (Now really)
Modified: trunk/reactos/ntoskrnl/io/irq.c

Modified: trunk/reactos/ntoskrnl/io/irq.c
--- trunk/reactos/ntoskrnl/io/irq.c	2005-03-08 23:10:38 UTC (rev 13894)
+++ trunk/reactos/ntoskrnl/io/irq.c	2005-03-08 23:15:34 UTC (rev 13895)
@@ -1,4 +1,4 @@
-/* $Id:$
+/* $Id$
  * 
  * COPYRIGHT:       See COPYING in the top level directory
  * PROJECT:         ReactOS kernel
@@ -121,7 +121,10 @@
              {
 	       for (i = 0; i < count; i++)
 	         {
-		   KeDisconnectInterrupt(&Interrupt[i]);
+		   if (ProcessorEnableMask & (1 << i))
+		     {
+		       KeDisconnectInterrupt(&Interrupt[i]);
+		     }
 		 }
 	       ExFreePool(Interrupt);
 	       return STATUS_INVALID_PARAMETER;