return correct length of LangID string to host
This commit is contained in:
parent
3f74a95663
commit
376a08d89a
@ -124,7 +124,7 @@ static rt_err_t _get_string_descriptor(struct udevice* device, ureq_t setup)
|
||||
}
|
||||
}
|
||||
|
||||
if(setup->length > len)
|
||||
if (setup->length > str_desc.bLength)
|
||||
len = str_desc.bLength;
|
||||
else
|
||||
len = setup->length;
|
||||
|
Loading…
x
Reference in New Issue
Block a user