[USBCCGP]
authorJohannes Anderwald <johannes.anderwald@reactos.org>
Fri, 21 Oct 2016 20:52:40 +0000 (20:52 +0000)
committerJohannes Anderwald <johannes.anderwald@reactos.org>
Fri, 21 Oct 2016 20:52:40 +0000 (20:52 +0000)
- fix invalid device descriptor for composite usb devices

svn path=/trunk/; revision=73014

reactos/drivers/usb/usbccgp/fdo.c

index 198dec3..0428f56 100644 (file)
@@ -223,7 +223,7 @@ FDO_CreateChildPdo(
         PDODeviceExtension->ConfigurationHandle = FDODeviceExtension->ConfigurationHandle;
         PDODeviceExtension->ConfigurationDescriptor = FDODeviceExtension->ConfigurationDescriptor;
         RtlCopyMemory(&PDODeviceExtension->Capabilities, &FDODeviceExtension->Capabilities, sizeof(DEVICE_CAPABILITIES));
         PDODeviceExtension->ConfigurationHandle = FDODeviceExtension->ConfigurationHandle;
         PDODeviceExtension->ConfigurationDescriptor = FDODeviceExtension->ConfigurationDescriptor;
         RtlCopyMemory(&PDODeviceExtension->Capabilities, &FDODeviceExtension->Capabilities, sizeof(DEVICE_CAPABILITIES));
-        RtlCopyMemory(&PDODeviceExtension->DeviceDescriptor, &FDODeviceExtension->DeviceDescriptor, sizeof(USB_DEVICE_DESCRIPTOR));
+        RtlCopyMemory(&PDODeviceExtension->DeviceDescriptor, FDODeviceExtension->DeviceDescriptor, sizeof(USB_DEVICE_DESCRIPTOR));
 
         /* Patch the stack size */
         PDODeviceObject->StackSize = DeviceObject->StackSize + 1;
 
         /* Patch the stack size */
         PDODeviceObject->StackSize = DeviceObject->StackSize + 1;