diff options
author | qwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-04-16 09:10:23 +0000 |
---|---|---|
committer | qwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-04-16 09:10:23 +0000 |
commit | 0915f6dce444a96a4985f42539ff249aff17265c (patch) | |
tree | 83f45c5b4809fc1f517cb6309b048333d29ef98a /EdkCompatibilityPkg | |
parent | ebbd27939f7fc48c74ced20593bfa7790d6fbe83 (diff) | |
download | edk2-platforms-0915f6dce444a96a4985f42539ff249aff17265c.tar.xz |
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
Diffstat (limited to 'EdkCompatibilityPkg')
-rw-r--r-- | EdkCompatibilityPkg/Compatibility/FrameworkHiiToUefiHiiThunk/ConfigAccess.c | 4 |
1 files 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);
|