https://git.reactos.org/?p=reactos.git;a=commitdiff;h=86af8d49fbba6539d6207f...
commit 86af8d49fbba6539d6207fbcf9a49d6a51d8b41e Author: Vadim Galyant vgal@rambler.ru AuthorDate: Sat Jan 6 12:55:09 2018 +0900
[USBHUB] Correcting L"USB\Vid_0000&Pid_0000" for case BusQueryDeviceID in USBH_PdoQueryId() if INIT_PORT_FAILED. --- drivers/usb/usbhub_new/pnp.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/drivers/usb/usbhub_new/pnp.c b/drivers/usb/usbhub_new/pnp.c index 66276edd3d..a6dd9cc656 100644 --- a/drivers/usb/usbhub_new/pnp.c +++ b/drivers/usb/usbhub_new/pnp.c @@ -1576,12 +1576,13 @@ USBH_PdoQueryId(IN PUSBHUB_PORT_PDO_EXTENSION PortExtension,
if (PortExtension->PortPdoFlags & USBHUB_PDO_FLAG_INIT_PORT_FAILED) { + DPRINT("USBH_PdoQueryId: USBHUB_PDO_FLAG_INIT_PORT_FAILED\n"); RtlStringCbPrintfExW(Buffer, Remaining, NULL, &Remaining, 0, - L"USB\Vid_0000&Pid0000"); + L"USB\Vid_0000&Pid_0000"); } else { @@ -1613,6 +1614,8 @@ USBH_PdoQueryId(IN PUSBHUB_PORT_PDO_EXTENSION PortExtension,
if (PortExtension->PortPdoFlags & USBHUB_PDO_FLAG_INIT_PORT_FAILED) { + DPRINT("USBH_PdoQueryId: USBHUB_PDO_FLAG_INIT_PORT_FAILED\n"); + RtlStringCbPrintfExW(Buffer, Remaining, NULL, @@ -1672,6 +1675,8 @@ USBH_PdoQueryId(IN PUSBHUB_PORT_PDO_EXTENSION PortExtension,
if (PortExtension->PortPdoFlags & USBHUB_PDO_FLAG_INIT_PORT_FAILED) { + DPRINT("USBH_PdoQueryId: USBHUB_PDO_FLAG_INIT_PORT_FAILED\n"); + RtlStringCbPrintfExW(Buffer, Remaining, NULL,