From 8a09fb755c057f9d37c055dd83ea67f2a54e55e2 Mon Sep 17 00:00:00 2001 From: Johannes Anderwald Date: Mon, 24 Dec 2012 09:56:28 +0000 Subject: [PATCH] [USBCCGP] - Fix bug when enumerating composite usb devices with IADs svn path=/trunk/; revision=57988 --- reactos/drivers/usb/usbccgp/function.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/drivers/usb/usbccgp/function.c b/reactos/drivers/usb/usbccgp/function.c index 7dd0c857083..0ff51ef348e 100644 --- a/reactos/drivers/usb/usbccgp/function.c +++ b/reactos/drivers/usb/usbccgp/function.c @@ -465,7 +465,7 @@ USBCCGP_EnumWithAssociationDescriptor( // allocate function descriptor array // FDODeviceExtension->FunctionDescriptor = AllocateItem(NonPagedPool, sizeof(USBC_FUNCTION_DESCRIPTOR) * DescriptorCount); - if (!FDODeviceExtension->FunctionDescriptorCount) + if (!FDODeviceExtension->FunctionDescriptor) { // // no memory