Clean the flag before use it to avoid use old error value.
Signed-off-by: Eric Dong <eric.dong@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14510 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@ -1125,6 +1125,7 @@ GetVarStoreType (
|
|||||||
GuidStr = NULL;
|
GuidStr = NULL;
|
||||||
NameStr = NULL;
|
NameStr = NULL;
|
||||||
TempStr = NULL;
|
TempStr = NULL;
|
||||||
|
*IsEfiVarstore = FALSE;
|
||||||
|
|
||||||
Status = GetFormPackageData(DataBaseRecord, &HiiFormPackage, &PackageSize);
|
Status = GetFormPackageData(DataBaseRecord, &HiiFormPackage, &PackageSize);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
|
Reference in New Issue
Block a user