Catch up with usbd_get_string_desc() change.

This commit is contained in:
Lukas Ertl 2004-06-26 13:21:31 +00:00
parent 35ea382b1a
commit 5d4284a178
1 changed files with 3 additions and 2 deletions

View File

@ -207,7 +207,7 @@ USB_MATCH(ubser)
usb_string_descriptor_t us;
usb_interface_descriptor_t *id;
usb_device_descriptor_t *dd;
int err;
int err, size;
if (uaa->iface == NULL)
return (UMATCH_NONE);
@ -227,7 +227,8 @@ USB_MATCH(ubser)
return (UMATCH_NONE);
}
err = usbd_get_string_desc(uaa->device, dd->iManufacturer, 0, &us);
err = usbd_get_string_desc(uaa->device, dd->iManufacturer, 0, &us,
&size);
if (err != 0)
return (UMATCH_NONE);