diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2022-05-30 11:22:55 +0200 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2022-05-30 10:44:45 +0000 |
commit | 3ca7326b37c5d20d9473f47266074e61ea384c5b (patch) | |
tree | 08af332abe901abaca76154c1c204c626325d39b /OvmfPkg/VirtioGpuDxe | |
parent | dac2fc8146e42ef19cd50ecbe32ccb7705b76fa3 (diff) | |
download | edk2-3ca7326b37c5d20d9473f47266074e61ea384c5b.tar.gz edk2-3ca7326b37c5d20d9473f47266074e61ea384c5b.tar.bz2 edk2-3ca7326b37c5d20d9473f47266074e61ea384c5b.zip |
OvmfPkg/VirtioGpuDxe: replace struct copy with CopyMem call
Buildfix for `-t CLANG38 -b NOOPT -p OvmfPkg/OvmfPkgX64.dsc`.
Fixes: 5f6ecaa398ba ("OvmfPkg/VirtioGpuDxe: use GopQueryMode in GopSetMode")
Reported-by: Rebecca Cran <quic_rcran@quicinc.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'OvmfPkg/VirtioGpuDxe')
-rw-r--r-- | OvmfPkg/VirtioGpuDxe/Gop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OvmfPkg/VirtioGpuDxe/Gop.c b/OvmfPkg/VirtioGpuDxe/Gop.c index 70a81c10c8..401db47672 100644 --- a/OvmfPkg/VirtioGpuDxe/Gop.c +++ b/OvmfPkg/VirtioGpuDxe/Gop.c @@ -509,7 +509,7 @@ GopSetMode ( // Populate Mode and ModeInfo (mutable fields only).
//
VgpuGop->GopMode.Mode = ModeNumber;
- VgpuGop->GopModeInfo = *GopModeInfo;
+ CopyMem (&VgpuGop->GopModeInfo, GopModeInfo, sizeof VgpuGop->GopModeInfo);
FreePool (GopModeInfo);
return EFI_SUCCESS;
|