[NTOS:IO] IoDisconnectInterrupt(): Fix disconnecting other interrupts (#6503)

Addendum to commit d1258e99f (r16229).
This commit is contained in:
Serge Gautherie
2020-06-14 13:49:22 +02:00
committed by Hermès Bélusca-Maïto
parent 603fd832d0
commit cbc78e0629

View File

@@ -139,8 +139,8 @@ VOID
NTAPI
IoDisconnectInterrupt(PKINTERRUPT InterruptObject)
{
LONG i;
PIO_INTERRUPT IoInterrupt;
ULONG i;
PAGED_CODE();
@@ -160,7 +160,7 @@ IoDisconnectInterrupt(PKINTERRUPT InterruptObject)
continue;
/* Disconnect it */
KeDisconnectInterrupt(&InterruptObject[i]);
KeDisconnectInterrupt(IoInterrupt->Interrupt[i]);
}
/* Free the I/O Interrupt */