mirror of https://github.com/acidanthera/audk.git
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:
parent
dac2fc8146
commit
3ca7326b37
|
@ -509,7 +509,7 @@ GopSetMode (
|
||||||
// Populate Mode and ModeInfo (mutable fields only).
|
// Populate Mode and ModeInfo (mutable fields only).
|
||||||
//
|
//
|
||||||
VgpuGop->GopMode.Mode = ModeNumber;
|
VgpuGop->GopMode.Mode = ModeNumber;
|
||||||
VgpuGop->GopModeInfo = *GopModeInfo;
|
CopyMem (&VgpuGop->GopModeInfo, GopModeInfo, sizeof VgpuGop->GopModeInfo);
|
||||||
FreePool (GopModeInfo);
|
FreePool (GopModeInfo);
|
||||||
return EFI_SUCCESS;
|
return EFI_SUCCESS;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue