mirror of https://github.com/acidanthera/audk.git
Source level security checked
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7297 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
67252d9f04
commit
e6c4ef1336
|
@ -141,6 +141,7 @@ UpdateVariableInfo (
|
|||
|
||||
CopyGuid (&gVariableInfo->VendorGuid, VendorGuid);
|
||||
gVariableInfo->Name = AllocatePool (StrLen (VariableName));
|
||||
ASSERT (gVariableInfo->Name != NULL);
|
||||
StrCpy (gVariableInfo->Name, VariableName);
|
||||
gVariableInfo->Volatile = Volatile;
|
||||
|
||||
|
@ -178,6 +179,7 @@ UpdateVariableInfo (
|
|||
|
||||
CopyGuid (&Entry->Next->VendorGuid, VendorGuid);
|
||||
Entry->Next->Name = AllocatePool (StrLen (VariableName));
|
||||
ASSERT (Entry->Next->Name != NULL);
|
||||
StrCpy (Entry->Next->Name, VariableName);
|
||||
Entry->Next->Volatile = Volatile;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue