[CRT] Massively improve performance of rand_s
[reactos.git] / drivers / usb / usbccgp / function.c
index 0ff51ef..63817c5 100644 (file)
@@ -11,6 +11,9 @@
 
 #include "usbccgp.h"
 
+#define NDEBUG
+#include <debug.h>
+
 NTSTATUS
 USBCCGP_QueryInterface(
     IN PDEVICE_OBJECT DeviceObject,
@@ -636,6 +639,7 @@ USBCCGP_LegacyEnum(
     //
     // init function descriptors
     //
+    FDODeviceExtension->FunctionDescriptorCount = 0;
     for (Index = 0; Index < FDODeviceExtension->ConfigurationDescriptor->bNumInterfaces; Index++)
     {
         // get interface descriptor
@@ -698,7 +702,7 @@ NTSTATUS
 USBCCGP_EnumWithUnionFunctionDescriptors(
     IN PDEVICE_OBJECT DeviceObject)
 {
-    UNIMPLEMENTED
+    UNIMPLEMENTED;
     return STATUS_NOT_IMPLEMENTED;
 }