https://git.reactos.org/?p=reactos.git;a=commitdiff;h=2be475db5d374d6a54d6a…
commit 2be475db5d374d6a54d6a8d58027f510c2eb9b54
Author: Vadim Galyant <vgal(a)rambler.ru>
AuthorDate: Sat Dec 9 15:00:04 2017 +0900
Commit: Amine Khaldi <amine.khaldi(a)reactos.org>
CommitDate: Sun Jan 21 19:35:48 2018 +0100
[USBPORT] Correcting USB2_GetStartTime().
---
drivers/usb/usbport/usb2.c | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/drivers/usb/usbport/usb2.c b/drivers/usb/usbport/usb2.c
index 1811b541c0..edc91c1d70 100644
--- a/drivers/usb/usbport/usb2.c
+++ b/drivers/usb/usbport/usb2.c
@@ -251,13 +251,11 @@ USB2_GetStartTime(IN PUSB2_TT_ENDPOINT nextTtEndpoint,
TransferType = TtEndpoint->TtEndpointParams.TransferType;
- if (nextTtEndpoint && TransferType == USBPORT_TRANSFER_TYPE_ISOCHRONOUS)
- {
- return nextTtEndpoint->StartTime + nextTtEndpoint->CalcBusTime;
- }
-
if (TransferType == USBPORT_TRANSFER_TYPE_ISOCHRONOUS)
{
+ if (nextTtEndpoint)
+ return nextTtEndpoint->StartTime + nextTtEndpoint->CalcBusTime;
+
ttEndpoint = TtEndpoint->Tt->FrameBudget[Frame].AltEndpoint;
if (ttEndpoint)