OcAppleDiskImageLib: Fix warnings regarding possibly unaligned pointer.
@@ -186,7 +186,7 @@ InternalConstructDmgDevicePath (
DevPath->Controller.Header.Type = HARDWARE_DEVICE_PATH;
DevPath->Controller.Header.SubType = HW_VENDOR_DP;
DevPath->Controller.Key = 0;
- CopyGuid (&DevPath->Controller.Guid, &mDmgControllerDpGuid);
+ CopyMem (&DevPath->Controller.Guid, &mDmgControllerDpGuid, sizeof (DevPath->Controller.Guid));
SetDevicePathNodeLength (&DevPath->Controller, sizeof (DevPath->Controller));
DevPath->MemMap.Header.Type = HARDWARE_DEVICE_PATH;
@@ -209,7 +209,7 @@ InternalConstructDmgDevicePath (
DevPath->Size.Header.Type = MESSAGING_DEVICE_PATH;
DevPath->Size.Header.SubType = MSG_VENDOR_DP;
DevPath->Size.Length = DmgSize;
- CopyGuid (&DevPath->Size.Guid, &mDmgSizeDpGuid);
+ CopyMem (&DevPath->Size.Guid, &mDmgSizeDpGuid, sizeof (DevPath->Size.Guid));
SetDevicePathNodeLength (&DevPath->Size, sizeof (DevPath->Size));
SetDevicePathEndNode (&DevPath->End);
