// 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