]> git.proxmox.com Git - mirror_edk2.git/blobdiff - OvmfPkg/VirtioGpuDxe/Gop.c
OvmfPkg/VirtioGpuDxe: replace struct copy with CopyMem call
[mirror_edk2.git] / OvmfPkg / VirtioGpuDxe / Gop.c
index 70a81c10c8b536c8598005569e4f43d40567da20..401db47672ec8d6db5a0d4bfe25bfdb2288e3612 100644 (file)
@@ -509,7 +509,7 @@ GopSetMode (
   // Populate Mode and ModeInfo (mutable fields only).\r
   //\r
   VgpuGop->GopMode.Mode = ModeNumber;\r
-  VgpuGop->GopModeInfo  = *GopModeInfo;\r
+  CopyMem (&VgpuGop->GopModeInfo, GopModeInfo, sizeof VgpuGop->GopModeInfo);\r
   FreePool (GopModeInfo);\r
   return EFI_SUCCESS;\r
 \r