[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:
Thomas Faber 2015-06-24 10:31:50 +00:00
parent 943d65a922
commit e243a508a4

View file

@ -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