From b1239a2491262b1561f994d939b64beac37fe819 Mon Sep 17 00:00:00 2001 From: Eric Dong Date: Thu, 13 Feb 2014 06:05:09 +0000 Subject: 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 Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15244 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Universal/SetupBrowserDxe/Presentation.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'MdeModulePkg/Universal/SetupBrowserDxe') 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; + } } // -- cgit v1.1