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:
gtian 2008-02-04 19:52:06 +00:00
parent fd431a9b3f
commit 39aea48d30
1 changed files with 7 additions and 0 deletions

View File

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