[USBCCGP]

- Add a DPRINT/ASSERT to USBCCGP_LegacyEnum to test a theory about CORE-9226

svn path=/trunk/; revision=67026
This commit is contained in:
Thomas Faber 2015-04-03 20:31:10 +00:00
parent 9b7e229a23
commit 9b70cba818

View file

@ -639,6 +639,11 @@ 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);
}
for (Index = 0; Index < FDODeviceExtension->ConfigurationDescriptor->bNumInterfaces; Index++)
{
// get interface descriptor