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
This commit is contained in:
qwang12 2008-04-16 09:10:23 +00:00
parent ebbd27939f
commit 0915f6dce4
1 changed files with 2 additions and 2 deletions

View File

@ -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);