mirror of https://github.com/acidanthera/audk.git
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:
parent
ebbd27939f
commit
0915f6dce4
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue