diff options
author | qwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-08-27 03:33:51 +0000 |
---|---|---|
committer | qwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-08-27 03:33:51 +0000 |
commit | 84b5c78e89686879f799a4cd095eeef83ff7cf34 (patch) | |
tree | 3cc8d6eed389d20c3ef707958cd22216b71ebd82 /MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassBot.c | |
parent | f490a61d79cdbb3325f2f273e588eae54168fc42 (diff) | |
download | edk2-platforms-84b5c78e89686879f799a4cd095eeef83ff7cf34.tar.xz |
Make MdeModulePkg GCC clean.
It also pass ICC+IPF and MYTOOLS+EBC build.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3711 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassBot.c')
-rw-r--r-- | MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassBot.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassBot.c b/MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassBot.c index 939ba394cf..6c92da9c71 100644 --- a/MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassBot.c +++ b/MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassBot.c @@ -108,14 +108,14 @@ UsbBotInit ( (UsbBot->BulkInEndpoint == NULL)) {
UsbBot->BulkInEndpoint = (EFI_USB_ENDPOINT_DESCRIPTOR *) (UsbBot + 1);
- *UsbBot->BulkInEndpoint = EndPoint;
+ CopyMem(UsbBot->BulkInEndpoint, &EndPoint, sizeof (EndPoint));
}
if (USB_IS_OUT_ENDPOINT (EndPoint.EndpointAddress) &&
(UsbBot->BulkOutEndpoint == NULL)) {
UsbBot->BulkOutEndpoint = (EFI_USB_ENDPOINT_DESCRIPTOR *) (UsbBot + 1) + 1;
- *UsbBot->BulkOutEndpoint = EndPoint;
+ CopyMem(UsbBot->BulkOutEndpoint, &EndPoint, sizeof(EndPoint));
}
}
|