[NTOS:IO] IoConnectInterrupt(): Move InterruptObject assignment where it belongs (#6503)

Addendum to commit d1258e99f (r16229), supersedes commit adf534b28.

CORE-17256
This commit is contained in:
Serge Gautherie
2020-06-14 13:49:22 +02:00
committed by Hermès Bélusca-Maïto
parent 2d442956b4
commit 347ca5f859

View File

@@ -70,8 +70,7 @@ IoConnectInterrupt(OUT PKINTERRUPT *InterruptObject,
KeInitializeSpinLock(SpinLock);
}
/* We first start with a built-in Interrupt inside the I/O Structure */
*InterruptObject = &IoInterrupt->FirstInterrupt;
/* We first start with a built-in interrupt inside the I/O structure */
Interrupt = (PKINTERRUPT)(IoInterrupt + 1);
FirstRun = TRUE;
@@ -115,7 +114,6 @@ IoConnectInterrupt(OUT PKINTERRUPT *InterruptObject,
}
/* And fail */
*InterruptObject = NULL;
return STATUS_INVALID_PARAMETER;
}
@@ -131,7 +129,8 @@ IoConnectInterrupt(OUT PKINTERRUPT *InterruptObject,
}
}
/* Return Success */
/* Return success */
*InterruptObject = &IoInterrupt->FirstInterrupt;
return STATUS_SUCCESS;
}