Also fix some copypasta'd DPRINTs.
DeviceDescriptor->idProduct);
}
DeviceDescriptor->idProduct);
}
- Length = sizeof(Buffer) - (Remaining - sizeof(UNICODE_NULL));
+ Length = sizeof(Buffer) - (Remaining - 2 * sizeof(UNICODE_NULL));
Id = ExAllocatePoolWithTag(PagedPool, Length, USB_HUB_TAG);
Id = ExAllocatePoolWithTag(PagedPool, Length, USB_HUB_TAG);
if (PortExtension->PortPdoFlags & USBHUB_PDO_FLAG_INIT_PORT_FAILED)
{
if (PortExtension->PortPdoFlags & USBHUB_PDO_FLAG_INIT_PORT_FAILED)
{
- DPRINT("USBH_PdoQueryId: BusQueryInstanceID - %S\n", Id);
+ DPRINT("USBH_PdoQueryId: BusQueryHardwareID - %S\n", Id);
InterfaceDescriptor->bInterfaceClass);
}
InterfaceDescriptor->bInterfaceClass);
}
- Length = sizeof(Buffer) - (Remaining - sizeof(UNICODE_NULL));
+ Length = sizeof(Buffer) - (Remaining - 2 * sizeof(UNICODE_NULL));
Id = ExAllocatePoolWithTag(PagedPool, Length, USB_HUB_TAG);
Id = ExAllocatePoolWithTag(PagedPool, Length, USB_HUB_TAG);
if (PortExtension->PortPdoFlags & USBHUB_PDO_FLAG_INIT_PORT_FAILED)
{
if (PortExtension->PortPdoFlags & USBHUB_PDO_FLAG_INIT_PORT_FAILED)
{
- DPRINT("USBH_PdoQueryId: BusQueryInstanceID - %S\n", Id);
+ DPRINT("USBH_PdoQueryId: BusQueryCompatibleID - %S\n", Id);
- Length = (sizeof(Buffer) - Remaining + sizeof(UNICODE_NULL));
+ Length = (sizeof(Buffer) - Remaining + 2 * sizeof(UNICODE_NULL));
/* for debug only */
if (FALSE)
/* for debug only */
if (FALSE)