summaryrefslogtreecommitdiff
path: root/edk2/MdeModulePkg/Universal
diff options
context:
space:
mode:
authorydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524>2012-09-10 03:03:40 +0000
committerydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524>2012-09-10 03:03:40 +0000
commit3bceb7f221da24e4a3afca0eb7274de76dd0b502 (patch)
treeb99608bd6f713d5abc896d28f878e1e7a69ac77b /edk2/MdeModulePkg/Universal
parent516eaf716d215b4ad5e49a60599ed233ccf4ba55 (diff)
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@13710 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'edk2/MdeModulePkg/Universal')
-rw-r--r--edk2/MdeModulePkg/Universal/SetupBrowserDxe/Setup.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/edk2/MdeModulePkg/Universal/SetupBrowserDxe/Setup.c b/edk2/MdeModulePkg/Universal/SetupBrowserDxe/Setup.c
index a15cc828c..ed7f015d6 100644
--- a/edk2/MdeModulePkg/Universal/SetupBrowserDxe/Setup.c
+++ b/edk2/MdeModulePkg/Universal/SetupBrowserDxe/Setup.c
@@ -3655,6 +3655,11 @@ InitializeCurrentSetting (
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
//
Link = GetFirstNode (&FormSet->StorageListHead);
@@ -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;