mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 10:35:28 +00:00
[USBCCGP]
- Reset FunctionDescriptorCount to zero in USBCCGP_LegacyEnum since the function can be called multiple times CORE-9226 svn path=/trunk/; revision=68250
This commit is contained in:
parent
943d65a922
commit
e243a508a4
1 changed files with 1 additions and 5 deletions
|
@ -639,11 +639,7 @@ USBCCGP_LegacyEnum(
|
|||
//
|
||||
// init function descriptors
|
||||
//
|
||||
if (FDODeviceExtension->FunctionDescriptorCount != 0)
|
||||
{
|
||||
DPRINT1("USBCCGP_LegacyEnum called with FunctionDescriptorCount=%lu. Adding another %lu descriptors will probably overflow\n", FDODeviceExtension->FunctionDescriptorCount, FDODeviceExtension->ConfigurationDescriptor->bNumInterfaces);
|
||||
ASSERT(FDODeviceExtension->FunctionDescriptorCount == 0);
|
||||
}
|
||||
FDODeviceExtension->FunctionDescriptorCount = 0;
|
||||
for (Index = 0; Index < FDODeviceExtension->ConfigurationDescriptor->bNumInterfaces; Index++)
|
||||
{
|
||||
// get interface descriptor
|
||||
|
|
Loading…
Reference in a new issue