GCC translates a simple assignment to memcpy, which EDKII doesn't provide. See: https://www.mail-archive.com/[email protected]/msg11928.html
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=2547 Signed-off-by: Daniel Schaefer <[email protected]> Cc: Abner Chang <[email protected]> Cc: Gilbert Chen <[email protected]> Cc: Leif Lindholm <[email protected]> Cc: Dandan Bi <[email protected]> Cc: Eric Dong <[email protected]> --- Notes: v2: - Use CopyMem instead of CopyGuid [Dandan] MdeModulePkg/Library/DeviceManagerUiLib/DeviceManager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MdeModulePkg/Library/DeviceManagerUiLib/DeviceManager.c b/MdeModulePkg/Library/DeviceManagerUiLib/DeviceManager.c index 5cc527679a78..0540e6fa8a44 100644 --- a/MdeModulePkg/Library/DeviceManagerUiLib/DeviceManager.c +++ b/MdeModulePkg/Library/DeviceManagerUiLib/DeviceManager.c @@ -619,7 +619,7 @@ CreateDeviceManagerForm( TokenHelp = HiiSetString (HiiHandle, 0, String, NULL); FreePool (String); - FormSetGuid = ((EFI_IFR_FORM_SET *)Ptr)->Guid; + CopyMem (&FormSetGuid, &((EFI_IFR_FORM_SET *) Ptr)->Guid, sizeof (EFI_GUID)); // // Network device process -- 2.25.0 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#55164): https://edk2.groups.io/g/devel/message/55164 Mute This Topic: https://groups.io/mt/71671270/21656 Group Owner: [email protected] Unsubscribe: https://edk2.groups.io/g/devel/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
