mirror of
https://github.com/reactos/reactos.git
synced 2026-06-05 11:12:56 +08:00
[NTOS:IO] IoConnectInterrupt(): Move InterruptObject assignment where it belongs (#6503)
Addendum to commitd1258e99f(r16229), supersedes commitadf534b28. CORE-17256
This commit is contained in:
committed by
Hermès Bélusca-Maïto
parent
2d442956b4
commit
347ca5f859
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user