OvmfPkg/VirtioGpuDxe: replace struct copy with CopyMem call

Buildfix for `-t CLANG38 -b NOOPT -p OvmfPkg/OvmfPkgX64.dsc`.

Fixes: 5f6ecaa398 ("OvmfPkg/VirtioGpuDxe: use GopQueryMode in GopSetMode")
Reported-by: Rebecca Cran <quic_rcran@quicinc.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
Gerd Hoffmann 2022-05-30 11:22:55 +02:00 committed by mergify[bot]
parent dac2fc8146
commit 3ca7326b37
1 changed files with 1 additions and 1 deletions

View File

@ -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;