Fixed discrepancy in string descriptor default

This commit is contained in:
akallabeth 2020-07-03 16:04:23 +02:00 committed by akallabeth
parent 37a5a7a157
commit 804891c0e8
1 changed files with 1 additions and 1 deletions

View File

@ -805,7 +805,7 @@ static UINT32 libusb_udev_control_query_device_text(IUDEVICE* idev, UINT32 TextT
"%s [%d], iProduct: %" PRIu8 "!",
msg, ret, devDescriptor->iProduct);
len = strnlen(strDesc, MIN(sizeof(strDesc), inSize));
len = MIN(sizeof(strDesc), inSize);
for (i = 0; i < len; i++)
text[i] = (WCHAR)strDesc[i];