mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 16:32:59 +00:00
[USBD]
- Don't assert on invalid usb descriptor - Core-6574 svn path=/trunk/; revision=57598
This commit is contained in:
parent
ed3d75f9de
commit
d1e0226d49
1 changed files with 5 additions and 2 deletions
|
@ -474,8 +474,11 @@ USBD_ParseDescriptors(
|
||||||
return CommonDescriptor;
|
return CommonDescriptor;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* sanity check */
|
if (CommonDescriptor->bLength == 0)
|
||||||
ASSERT(CommonDescriptor->bLength);
|
{
|
||||||
|
/* invalid usb descriptor */
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
/* move to next descriptor */
|
/* move to next descriptor */
|
||||||
CommonDescriptor = (PUSB_COMMON_DESCRIPTOR)((ULONG_PTR)CommonDescriptor + CommonDescriptor->bLength);
|
CommonDescriptor = (PUSB_COMMON_DESCRIPTOR)((ULONG_PTR)CommonDescriptor + CommonDescriptor->bLength);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue