[USBPORT] In USBHI_GetExtendedHubInformation, pass the correct port index to RH_GetPo...
authorVadim Galyant <vgal@rambler.ru>
Wed, 10 Jan 2018 17:58:44 +0000 (18:58 +0100)
committerThomas Faber <thomas.faber@reactos.org>
Wed, 10 Jan 2018 17:59:25 +0000 (18:59 +0100)
drivers/usb/usbport/iface.c

index 4e56811..7897528 100644 (file)
@@ -476,7 +476,7 @@ USBHI_GetExtendedHubInformation(IN PVOID BusContext,
             HubInfoBuffer->Port[ix].PortAttributes = USB_PORTATTR_SHARED_USB2;
 
             Packet->RH_GetPortStatus(FdoExtension->MiniPortExt,
-                                     ix,
+                                     ix + 1,
                                      &PortStatus);
 
             if (PortStatus.PortStatus.Usb20PortStatus.AsUshort16 & 0x8000)