mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 10:35:28 +00:00
[USBHUB] Move DPRINT after check Status.
This commit is contained in:
parent
86af8d49fb
commit
c0f157e589
1 changed files with 5 additions and 4 deletions
|
@ -1136,10 +1136,6 @@ EnumStart:
|
||||||
{
|
{
|
||||||
PortData = &HubExtension->PortData[Port - 1];
|
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)
|
if (HubExtension->HubFlags & USBHUB_FDO_FLAG_DEVICE_FAILED)
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
|
@ -1152,11 +1148,16 @@ EnumStart:
|
||||||
|
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
|
DPRINT_ENUM("USBH_FdoQueryBusRelations: Status - %X\n", Status);
|
||||||
HubExtension->HubFlags |= USBHUB_FDO_FLAG_DEVICE_FAILED;
|
HubExtension->HubFlags |= USBHUB_FDO_FLAG_DEVICE_FAILED;
|
||||||
DeviceRelations->Count = 0;
|
DeviceRelations->Count = 0;
|
||||||
goto EnumStart;
|
goto EnumStart;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
DPRINT_ENUM("USBH_FdoQueryBusRelations: Port - %x, ConnectStatus - %x\n",
|
||||||
|
Port,
|
||||||
|
PortData->PortStatus.PortStatus.Usb20PortStatus.CurrentConnectStatus);
|
||||||
|
|
||||||
PdoDevice = PortData->DeviceObject;
|
PdoDevice = PortData->DeviceObject;
|
||||||
|
|
||||||
if (PortData->DeviceObject)
|
if (PortData->DeviceObject)
|
||||||
|
|
Loading…
Reference in a new issue