diff options
author | ydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524> | 2012-09-10 03:03:40 +0000 |
---|---|---|
committer | ydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524> | 2012-09-10 03:03:40 +0000 |
commit | 1deb5cabe54d1177b207b0ed4b64d7819f0657b7 (patch) | |
tree | 4ab5ce0fcc5a7e7071884f47693344ef0b49c73c | |
parent | be7256aeb0ff670b37f682033333a263e9a1d204 (diff) | |
download | edk2-platforms-1deb5cabe54d1177b207b0ed4b64d7819f0657b7.tar.xz |
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
-rw-r--r-- | MdeModulePkg/Universal/SetupBrowserDxe/Setup.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/MdeModulePkg/Universal/SetupBrowserDxe/Setup.c b/MdeModulePkg/Universal/SetupBrowserDxe/Setup.c index a15cc828cb..ed7f015d66 100644 --- a/MdeModulePkg/Universal/SetupBrowserDxe/Setup.c +++ b/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;
|