summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Universal/SetupBrowserDxe
diff options
context:
space:
mode:
authorEric Dong <eric.dong@intel.com>2014-02-13 06:05:09 +0000
committerydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524>2014-02-13 06:05:09 +0000
commitb1239a2491262b1561f994d939b64beac37fe819 (patch)
tree66ab0ffb74e400682caed6cf8313652f2363ee82 /MdeModulePkg/Universal/SetupBrowserDxe
parente4c83a4f9cad7f2c362727cdeb3f5daf297ec270 (diff)
downloadedk2-b1239a2491262b1561f994d939b64beac37fe819.zip
edk2-b1239a2491262b1561f994d939b64beac37fe819.tar.gz
edk2-b1239a2491262b1561f994d939b64beac37fe819.tar.bz2
Set the Reset flag if user select one statement which has reset attribute and not has storage.
Contributed-under: TianoCore Contribution Agreement 1.0 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@15244 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal/SetupBrowserDxe')
-rw-r--r--MdeModulePkg/Universal/SetupBrowserDxe/Presentation.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/MdeModulePkg/Universal/SetupBrowserDxe/Presentation.c b/MdeModulePkg/Universal/SetupBrowserDxe/Presentation.c
index cdd32c0..e330814 100644
--- a/MdeModulePkg/Universal/SetupBrowserDxe/Presentation.c
+++ b/MdeModulePkg/Universal/SetupBrowserDxe/Presentation.c
@@ -2593,6 +2593,16 @@ SetupBrowser (
// Verify whether question value has checked, update the ValueChanged flag in Question.
//
IsQuestionValueChanged(gCurrentSelection->FormSet, gCurrentSelection->Form, Statement, GetSetValueWithBuffer);
+
+ //
+ // If question has EFI_IFR_FLAG_RESET_REQUIRED flag and without storage and process question success till here,
+ // trig the gResetFlag.
+ //
+ if ((Status == EFI_SUCCESS) &&
+ (Statement->Storage == NULL) &&
+ ((Statement->QuestionFlags & EFI_IFR_FLAG_RESET_REQUIRED) != 0)) {
+ gResetRequired = TRUE;
+ }
}
//