]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Bus/Usb/UsbBusDxe/UsbEnumer.c
fixed memcpy link issue.
[mirror_edk2.git] / MdeModulePkg / Bus / Usb / UsbBusDxe / UsbEnumer.c
index fc0007dd11cbe418ab0f21327fb6b8576b2138ee..95ad8701af725892ff65123c05426180f7817b1b 100644 (file)
@@ -120,7 +120,12 @@ UsbCreateInterface (
   UsbIf->Device     = Device;\r
   UsbIf->IfDesc     = IfDesc;\r
   UsbIf->IfSetting  = IfDesc->Settings[IfDesc->ActiveIndex];\r
-  UsbIf->UsbIo      = mUsbIoProtocol;\r
+\r
+  CopyMem (\r
+    &(UsbIf->UsbIo),\r
+    &mUsbIoProtocol,\r
+    sizeof (EFI_USB_IO_PROTOCOL)\r
+    );\r
 \r
   //\r
   // Install protocols for USBIO and device path\r