[USBHUB] Move DPRINT after check Status.

This commit is contained in:
Vadim Galyant 2018-01-06 12:48:37 +09:00 committed by Thomas Faber
parent 86af8d49fb
commit c0f157e589
No known key found for this signature in database
GPG key ID: 076E7C3D44720826

View file

@ -1136,10 +1136,6 @@ EnumStart:
{
PortData = &HubExtension->PortData[Port - 1];
DPRINT_ENUM("USBH_FdoQueryBusRelations: Port - %x, ConnectStatus - %x\n",
Port,
PortData->PortStatus.PortStatus.Usb20PortStatus.CurrentConnectStatus);
if (HubExtension->HubFlags & USBHUB_FDO_FLAG_DEVICE_FAILED)
{
continue;
@ -1152,11 +1148,16 @@ EnumStart:
if (!NT_SUCCESS(Status))
{
DPRINT_ENUM("USBH_FdoQueryBusRelations: Status - %X\n", Status);
HubExtension->HubFlags |= USBHUB_FDO_FLAG_DEVICE_FAILED;
DeviceRelations->Count = 0;
goto EnumStart;
}
DPRINT_ENUM("USBH_FdoQueryBusRelations: Port - %x, ConnectStatus - %x\n",
Port,
PortData->PortStatus.PortStatus.Usb20PortStatus.CurrentConnectStatus);
PdoDevice = PortData->DeviceObject;
if (PortData->DeviceObject)