From 0915f6dce444a96a4985f42539ff249aff17265c Mon Sep 17 00:00:00 2001 From: qwang12 Date: Wed, 16 Apr 2008 09:10:23 +0000 Subject: [PATCH] Change to CopyMem as VarStoreOpCode->Guid may align on UINT32. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5070 6f19259b-4bc3-4df7-8a09-765794883524 --- .../Compatibility/FrameworkHiiToUefiHiiThunk/ConfigAccess.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/EdkCompatibilityPkg/Compatibility/FrameworkHiiToUefiHiiThunk/ConfigAccess.c b/EdkCompatibilityPkg/Compatibility/FrameworkHiiToUefiHiiThunk/ConfigAccess.c index 8834bd7034..0ab9074b75 100644 --- a/EdkCompatibilityPkg/Compatibility/FrameworkHiiToUefiHiiThunk/ConfigAccess.c +++ b/EdkCompatibilityPkg/Compatibility/FrameworkHiiToUefiHiiThunk/ConfigAccess.c @@ -100,8 +100,8 @@ GetBufferStorage ( if (BufferStorageKey == NULL) { return EFI_OUT_OF_RESOURCES; } - CopyGuid (&BufferStorageKey->Guid, &VarStoreOpCode->Guid); - + CopyMem (&BufferStorageKey->Guid, &VarStoreOpCode->Guid, sizeof (EFI_GUID)); + BufferStorageKey->Name = AllocateZeroPool (AsciiStrSize (VarStoreOpCode->Name) * 2); AsciiStrToUnicodeStr (VarStoreOpCode->Name, BufferStorageKey->Name);