When question not have storage with it, not restore old value for it.

Signed-off-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13710 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
ydong10 2012-09-10 03:03:40 +00:00
parent be7256aeb0
commit 1deb5cabe5
1 changed files with 5 additions and 10 deletions

View File

@ -3654,6 +3654,11 @@ InitializeCurrentSetting (
FORM_BROWSER_FORM *Form2;
EFI_STATUS Status;
//
// Extract default from IFR binary for no storage questions.
//
ExtractDefault (FormSet, NULL, EFI_HII_DEFAULT_CLASS_STANDARD, FormSetLevel, GetDefaultForNoStorage, NULL, TRUE);
//
// Request current settings from Configuration Driver
//
@ -3716,11 +3721,6 @@ InitializeCurrentSetting (
// If has old formset, get the old nv update status.
//
if (gOldFormSet != NULL) {
//
// Restore question value for questions without storage.
//
CopyOldValueForNoStorageQst (FormSet, gOldFormSet);
Link = GetFirstNode (&FormSet->FormListHead);
while (!IsNull (&FormSet->FormListHead, Link)) {
Form = FORM_BROWSER_FORM_FROM_LINK (Link);
@ -3738,11 +3738,6 @@ InitializeCurrentSetting (
}
Link = GetNextNode (&FormSet->FormListHead, Link);
}
} else {
//
// Extract default from IFR binary for no storage questions.
//
ExtractDefault (FormSet, NULL, EFI_HII_DEFAULT_CLASS_STANDARD, FormSetLevel, GetDefaultForNoStorage, NULL, TRUE);
}
return EFI_SUCCESS;