https://git.reactos.org/?p=reactos.git;a=commitdiff;h=f32e1acd3c8b7130f2420…
commit f32e1acd3c8b7130f242061162def37538b3d3fe
Author: Thomas Faber <thomas.faber(a)reactos.org>
AuthorDate: Fri Jan 31 00:25:53 2020 +0100
Commit: Thomas Faber <thomas.faber(a)reactos.org>
CommitDate: Sat Feb 1 13:17:30 2020 +0100
[USBHUB] Only break into the debugger in the case that is actually unimplemented.
CORE-16394
---
drivers/usb/usbhub/ioctl.c | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/drivers/usb/usbhub/ioctl.c b/drivers/usb/usbhub/ioctl.c
index 4f48c98e7d4..8cc42a88d67 100644
--- a/drivers/usb/usbhub/ioctl.c
+++ b/drivers/usb/usbhub/ioctl.c
@@ -25,6 +25,7 @@ USBH_SelectConfigOrInterfaceComplete(IN PDEVICE_OBJECT DeviceObject,
PUSBHUB_PORT_DATA PortData = NULL;
NTSTATUS Status;
KIRQL OldIrql;
+ PURB Urb;
DPRINT("USBH_SelectConfigOrInterfaceComplete ... \n");
@@ -69,8 +70,13 @@ USBH_SelectConfigOrInterfaceComplete(IN PDEVICE_OBJECT DeviceObject,
}
else
{
- DPRINT1("USBH_SelectConfigOrInterfaceComplete: Status != STATUS_SUCCESS.
FIXME\n");
- DbgBreakPoint();
+ Urb = URB_FROM_IRP(Irp);
+ DPRINT1("USBH_SelectConfigOrInterfaceComplete: Status = 0x%lx, UsbdStatus =
0x%lx\n", Status, Urb->UrbHeader.Status);
+ if (Urb->UrbHeader.Status == USBD_STATUS_NO_BANDWIDTH)
+ {
+ DPRINT1("USBH_SelectConfigOrInterfaceComplete: USBD_STATUS_NO_BANDWIDTH.
FIXME\n");
+ DbgBreakPoint();
+ }
}
return Status;