MdeModulePkg/SecurityPkg VariablePei: Fix VS2013 build failure.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16406 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
Star Zeng 2014-11-19 07:13:35 +00:00 committed by lzeng14
parent ac30bca0a3
commit eb774e2ef5
2 changed files with 8 additions and 0 deletions

View File

@ -884,6 +884,8 @@ PeiGetVariable (
return EFI_INVALID_PARAMETER;
}
VariableHeader = NULL;
//
// Find existing variable
//
@ -970,6 +972,8 @@ PeiGetNextVariableName (
return EFI_INVALID_PARAMETER;
}
VariableHeader = NULL;
Status = FindVariable (VariableName, VariableGuid, &Variable, &StoreInfo);
if (Variable.CurrPtr == NULL || Status != EFI_SUCCESS) {
return Status;

View File

@ -883,6 +883,8 @@ PeiGetVariable (
return EFI_INVALID_PARAMETER;
}
VariableHeader = NULL;
//
// Find existing variable
//
@ -969,6 +971,8 @@ PeiGetNextVariableName (
return EFI_INVALID_PARAMETER;
}
VariableHeader = NULL;
Status = FindVariable (VariableName, VariableGuid, &Variable, &StoreInfo);
if (Variable.CurrPtr == NULL || Status != EFI_SUCCESS) {
return Status;