Author: tfaber
Date: Wed Jun 24 10:31:50 2015
New Revision: 68250
URL:
http://svn.reactos.org/svn/reactos?rev=68250&view=rev
Log:
[USBCCGP]
- Reset FunctionDescriptorCount to zero in USBCCGP_LegacyEnum since the function can be
called multiple times
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] Wed Jun 24 10:31:50 2015
@@ -639,11 +639,7 @@
//
// 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