diff options
author | Michael D Kinney <michael.d.kinney@intel.com> | 2019-08-09 12:43:34 -0700 |
---|---|---|
committer | Michael D Kinney <michael.d.kinney@intel.com> | 2019-08-12 13:58:15 -0700 |
commit | 44ec9585e8fcdb638106975dc356e8ed28fd73bd (patch) | |
tree | 8e2e3e51f93eec19bde092bbe32f7e0e80d12515 | |
parent | 19ce9d3fc6428a7c171ff855112b3e29c221df96 (diff) |
Vlv2TbltDevicePkg/VlvPlatformInitDxe: Avoid memset() intrinsic
VS2017 builds for X64 are failing due to the use of the
memset() intrinsic. The local variable GopVersion is an
array that is initialed in the declaration. Update to
use ZeroMem() to initialize GopVersion.
Cc: Zailiang Sun <zailiang.sun@intel.com>
Cc: Gary Lin <glin@suse.com>
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
Reviewed-by: Zailiang Sun <Zailiang.sun@intel.com>
Reviewed-by: Gary Lin <glin@suse.com>
-rw-r--r-- | Platform/Intel/Vlv2TbltDevicePkg/VlvPlatformInitDxe/IgdOpRegion.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Platform/Intel/Vlv2TbltDevicePkg/VlvPlatformInitDxe/IgdOpRegion.c b/Platform/Intel/Vlv2TbltDevicePkg/VlvPlatformInitDxe/IgdOpRegion.c index fcd9e566..3815c8fa 100644 --- a/Platform/Intel/Vlv2TbltDevicePkg/VlvPlatformInitDxe/IgdOpRegion.c +++ b/Platform/Intel/Vlv2TbltDevicePkg/VlvPlatformInitDxe/IgdOpRegion.c @@ -493,9 +493,10 @@ SetGOPVersionCallback ( IN VOID *Context
)
{
- CHAR16 GopVersion[16] = {0};
+ CHAR16 GopVersion[16];
EFI_STATUS Status;
+ ZeroMem (GopVersion, sizeof (GopVersion));
Status = GetGOPDriverVersion(GopVersion);
if(!EFI_ERROR(Status)) {
StrCpy((CHAR16*)&(mIgdOpRegion.OpRegion->Header.GOPV[0]), GopVersion);
|