[USBHUB_NEW][USBPORT] Fix buffer size calculation for multi-sz values in IRP_MN_QUERY_ID.

Also fix some copypasta'd DPRINTs.
This commit is contained in:
Vadim Galyant 2018-09-08 20:52:06 +02:00 committed by Thomas Faber
parent a9da3c50be
commit 3baf43c5de
No known key found for this signature in database
GPG key ID: 076E7C3D44720826
2 changed files with 5 additions and 5 deletions

View file

@ -1493,7 +1493,7 @@ USBPORT_GetDeviceHwIds(IN PDEVICE_OBJECT FdoDevice,
L"USB\\ROOT_HUB");
}
Length = (sizeof(Buffer) - Remaining + sizeof(UNICODE_NULL));
Length = (sizeof(Buffer) - Remaining + 2 * sizeof(UNICODE_NULL));
/* for debug only */
if (FALSE)