[USBHUB] Correcting L"USB\\Vid_0000&Pid_0000" for case BusQueryDeviceID in USBH_PdoQueryId() if INIT_PORT_FAILED.

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

View file

@ -1576,12 +1576,13 @@ USBH_PdoQueryId(IN PUSBHUB_PORT_PDO_EXTENSION PortExtension,
if (PortExtension->PortPdoFlags & USBHUB_PDO_FLAG_INIT_PORT_FAILED) if (PortExtension->PortPdoFlags & USBHUB_PDO_FLAG_INIT_PORT_FAILED)
{ {
DPRINT("USBH_PdoQueryId: USBHUB_PDO_FLAG_INIT_PORT_FAILED\n");
RtlStringCbPrintfExW(Buffer, RtlStringCbPrintfExW(Buffer,
Remaining, Remaining,
NULL, NULL,
&Remaining, &Remaining,
0, 0,
L"USB\\Vid_0000&Pid0000"); L"USB\\Vid_0000&Pid_0000");
} }
else else
{ {
@ -1613,6 +1614,8 @@ USBH_PdoQueryId(IN PUSBHUB_PORT_PDO_EXTENSION PortExtension,
if (PortExtension->PortPdoFlags & USBHUB_PDO_FLAG_INIT_PORT_FAILED) if (PortExtension->PortPdoFlags & USBHUB_PDO_FLAG_INIT_PORT_FAILED)
{ {
DPRINT("USBH_PdoQueryId: USBHUB_PDO_FLAG_INIT_PORT_FAILED\n");
RtlStringCbPrintfExW(Buffer, RtlStringCbPrintfExW(Buffer,
Remaining, Remaining,
NULL, NULL,
@ -1672,6 +1675,8 @@ USBH_PdoQueryId(IN PUSBHUB_PORT_PDO_EXTENSION PortExtension,
if (PortExtension->PortPdoFlags & USBHUB_PDO_FLAG_INIT_PORT_FAILED) if (PortExtension->PortPdoFlags & USBHUB_PDO_FLAG_INIT_PORT_FAILED)
{ {
DPRINT("USBH_PdoQueryId: USBHUB_PDO_FLAG_INIT_PORT_FAILED\n");
RtlStringCbPrintfExW(Buffer, RtlStringCbPrintfExW(Buffer,
Remaining, Remaining,
NULL, NULL,