From 9b70cba818ce429c410cd1a0289773b1654d109c Mon Sep 17 00:00:00 2001 From: Thomas Faber Date: Fri, 3 Apr 2015 20:31:10 +0000 Subject: [PATCH] [USBCCGP] - Add a DPRINT/ASSERT to USBCCGP_LegacyEnum to test a theory about CORE-9226 svn path=/trunk/; revision=67026 --- reactos/drivers/usb/usbccgp/function.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/reactos/drivers/usb/usbccgp/function.c b/reactos/drivers/usb/usbccgp/function.c index e32a51541a7..ae6c2bb7ae1 100644 --- a/reactos/drivers/usb/usbccgp/function.c +++ b/reactos/drivers/usb/usbccgp/function.c @@ -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