mirror of https://github.com/acidanthera/audk.git
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:
parent
be7256aeb0
commit
1deb5cabe5
|
@ -3654,6 +3654,11 @@ InitializeCurrentSetting (
|
||||||
FORM_BROWSER_FORM *Form2;
|
FORM_BROWSER_FORM *Form2;
|
||||||
EFI_STATUS Status;
|
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
|
// Request current settings from Configuration Driver
|
||||||
//
|
//
|
||||||
|
@ -3716,11 +3721,6 @@ InitializeCurrentSetting (
|
||||||
// If has old formset, get the old nv update status.
|
// If has old formset, get the old nv update status.
|
||||||
//
|
//
|
||||||
if (gOldFormSet != NULL) {
|
if (gOldFormSet != NULL) {
|
||||||
//
|
|
||||||
// Restore question value for questions without storage.
|
|
||||||
//
|
|
||||||
CopyOldValueForNoStorageQst (FormSet, gOldFormSet);
|
|
||||||
|
|
||||||
Link = GetFirstNode (&FormSet->FormListHead);
|
Link = GetFirstNode (&FormSet->FormListHead);
|
||||||
while (!IsNull (&FormSet->FormListHead, Link)) {
|
while (!IsNull (&FormSet->FormListHead, Link)) {
|
||||||
Form = FORM_BROWSER_FORM_FROM_LINK (Link);
|
Form = FORM_BROWSER_FORM_FROM_LINK (Link);
|
||||||
|
@ -3738,11 +3738,6 @@ InitializeCurrentSetting (
|
||||||
}
|
}
|
||||||
Link = GetNextNode (&FormSet->FormListHead, Link);
|
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;
|
return EFI_SUCCESS;
|
||||||
|
|
Loading…
Reference in New Issue