Author: tfaber
Date: Fri Apr 3 20:31:10 2015
New Revision: 67026
URL:
http://svn.reactos.org/svn/reactos?rev=67026&view=rev
Log:
[USBCCGP]
- Add a DPRINT/ASSERT to USBCCGP_LegacyEnum to test a theory about CORE-9226
Modified:
trunk/reactos/drivers/usb/usbccgp/function.c
Modified: trunk/reactos/drivers/usb/usbccgp/function.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/usb/usbccgp/functi…
==============================================================================
--- trunk/reactos/drivers/usb/usbccgp/function.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/usb/usbccgp/function.c [iso-8859-1] Fri Apr 3 20:31:10 2015
@@ -639,6 +639,11 @@
//
// 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