From 86af8d49fbba6539d6207fbcf9a49d6a51d8b41e Mon Sep 17 00:00:00 2001 From: Vadim Galyant Date: Sat, 6 Jan 2018 12:55:09 +0900 Subject: [PATCH] [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 66276edd3dc..a6dd9cc656c 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,