mirror of https://github.com/acidanthera/audk.git
Add the check- in missed file
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4675 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
fd431a9b3f
commit
39aea48d30
|
@ -603,6 +603,13 @@ Returns:
|
|||
//
|
||||
VarDataSize = DataSizeOfVariable (Variable.CurrPtr);
|
||||
if (*DataSize >= VarDataSize) {
|
||||
//
|
||||
// PO-TKW: Address one checking in this place
|
||||
//
|
||||
if (Data == NULL) {
|
||||
return EFI_INVALID_PARAMETER;
|
||||
}
|
||||
|
||||
(*PeiServices)->CopyMem (Data, GetVariableDataPtr (Variable.CurrPtr), VarDataSize);
|
||||
|
||||
if (Attributes != NULL) {
|
||||
|
|
Loading…
Reference in New Issue