[USBCCGP]
authorAmine Khaldi <amine.khaldi@reactos.org>
Fri, 1 Jun 2012 18:59:22 +0000 (18:59 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Fri, 1 Jun 2012 18:59:22 +0000 (18:59 +0000)
* Fix a thinko.

svn path=/trunk/; revision=56686

reactos/drivers/usb/usbccgp/function.c

index 5d17ade..7dd0c85 100644 (file)
@@ -331,7 +331,7 @@ USBCCGP_InitFunctionDescriptor(
 
     // allocate array for interface count
     FunctionDescriptor->InterfaceDescriptorList = AllocateItem(NonPagedPool, sizeof(PUSB_INTERFACE_DESCRIPTOR) * Descriptor->bInterfaceCount);
-    if (FunctionDescriptor->InterfaceDescriptorList)
+    if (!FunctionDescriptor->InterfaceDescriptorList)
     {
         //
         // no memory