https://git.reactos.org/?p=reactos.git;a=commitdiff;h=797ebcab724adf1616cba79c5384e8c8c8568c77

commit 797ebcab724adf1616cba79c5384e8c8c8568c77
Author:     Vadim Galyant <v...@rambler.ru>
AuthorDate: Wed Jan 17 14:22:49 2018 +0900
Commit:     Amine Khaldi <amine.kha...@reactos.org>
CommitDate: Sun Jan 21 19:36:01 2018 +0100

    [USBPORT] Fixing use DeviceSpeed instead Direction.
---
 drivers/usb/usbport/usb2.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/usbport/usb2.c b/drivers/usb/usbport/usb2.c
index 86cd1e1474..7d2c9a308d 100644
--- a/drivers/usb/usbport/usb2.c
+++ b/drivers/usb/usbport/usb2.c
@@ -127,7 +127,7 @@ USB2_GetOverhead(IN PUSB2_TT_ENDPOINT TtEndpoint)
 
     TransferType = TtEndpoint->TtEndpointParams.TransferType;
     Direction = TtEndpoint->TtEndpointParams.Direction;
-    DeviceSpeed = TtEndpoint->TtEndpointParams.Direction;
+    DeviceSpeed = TtEndpoint->TtEndpointParams.DeviceSpeed;
 
     HostDelay = TtEndpoint->Tt->HcExtension->HcDelayTime;
 

Reply via email to