]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassBot.c
Make MdeModulePkg GCC clean.
[mirror_edk2.git] / MdeModulePkg / Bus / Usb / UsbMassStorageDxe / UsbMassBot.c
index 939ba394cfbe013993cc05e661dae5ba09c63192..6c92da9c717d54fda7f4f2362f608c42cffc234b 100644 (file)
@@ -108,14 +108,14 @@ UsbBotInit (
        (UsbBot->BulkInEndpoint == NULL)) {\r
 \r
       UsbBot->BulkInEndpoint  = (EFI_USB_ENDPOINT_DESCRIPTOR *) (UsbBot + 1);\r
-      *UsbBot->BulkInEndpoint = EndPoint;\r
+      CopyMem(UsbBot->BulkInEndpoint, &EndPoint, sizeof (EndPoint));\r
     }\r
 \r
     if (USB_IS_OUT_ENDPOINT (EndPoint.EndpointAddress) &&\r
        (UsbBot->BulkOutEndpoint == NULL)) {\r
 \r
       UsbBot->BulkOutEndpoint   = (EFI_USB_ENDPOINT_DESCRIPTOR *) (UsbBot + 1) + 1;\r
-      *UsbBot->BulkOutEndpoint  = EndPoint;\r
+      CopyMem(UsbBot->BulkOutEndpoint, &EndPoint, sizeof(EndPoint));\r
     }\r
   }\r
 \r