]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/UefiUsbLib/UsbDxeLib.c
fix the wrong data length. According to spec, to get interface and configuration...
[mirror_edk2.git] / MdePkg / Library / UefiUsbLib / UsbDxeLib.c
index a535c1f58dc18df24124be2be021f012f9108527..c27fb03499151329dcb31357cb09bb7aa47d9e29 100644 (file)
@@ -190,7 +190,7 @@ UsbGetInterface (
                   EfiUsbDataIn,\r
                   PcdGet32 (PcdUsbTransferTimeoutValue),\r
                   AlternateSetting,\r
-                  2,\r
+                  1,\r
                   Status\r
                   );\r
 }\r
@@ -295,7 +295,7 @@ UsbGetConfiguration (
                   EfiUsbDataIn,\r
                   PcdGet32 (PcdUsbTransferTimeoutValue),\r
                   ConfigurationValue,\r
-                  2,\r
+                  1,\r
                   Status\r
                   );\r
 }\r