[USBPORT] In USBHI_GetExtendedHubInformation, pass the correct port index to RH_GetPortStatus.

This commit is contained in:
Vadim Galyant 2018-01-10 18:58:44 +01:00 committed by Thomas Faber
parent c0f157e589
commit a0296dd3de
No known key found for this signature in database
GPG key ID: 076E7C3D44720826

View 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)