瀏覽代碼

fix incorrect length

Sanjay Govind 11 月之前
父節點
當前提交
f5dcf2fef8
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      helpers/pof_usb.c

+ 1 - 1
helpers/pof_usb.c

@@ -432,7 +432,7 @@ static const struct PoFUsbDescriptorXbox360 usb_pof_cfg_descr_x360 = {
         {
             .bLength = sizeof(struct usb_config_descriptor),
             .bDescriptorType = USB_DTYPE_CONFIGURATION,
-            .wTotalLength = sizeof(struct PoFUsbDescriptor),
+            .wTotalLength = sizeof(struct PoFUsbDescriptorXbox360),
             .bNumInterfaces = 4,
             .bConfigurationValue = 1,
             .iConfiguration = NO_DESCRIPTOR,