]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Set the Reset flag if user select one statement which has reset attribute and not...
authorEric Dong <eric.dong@intel.com>
Thu, 13 Feb 2014 06:05:09 +0000 (06:05 +0000)
committerydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 13 Feb 2014 06:05:09 +0000 (06:05 +0000)
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

MdeModulePkg/Universal/SetupBrowserDxe/Presentation.c

index cdd32c0ed0ff42ffce83dca206027ca4075f047b..e33081422bbfb5d6d2f17193d8299c66df36d5a0 100644 (file)
@@ -2593,6 +2593,16 @@ SetupBrowser (
       // Verify whether question value has checked, update the ValueChanged flag in Question.\r
       //\r
       IsQuestionValueChanged(gCurrentSelection->FormSet, gCurrentSelection->Form, Statement, GetSetValueWithBuffer);\r
+\r
+      //\r
+      // If question has EFI_IFR_FLAG_RESET_REQUIRED flag and without storage and process question success till here, \r
+      // trig the gResetFlag.\r
+      //\r
+      if ((Status == EFI_SUCCESS) && \r
+          (Statement->Storage == NULL) && \r
+          ((Statement->QuestionFlags & EFI_IFR_FLAG_RESET_REQUIRED) != 0)) {\r
+        gResetRequired = TRUE;\r
+      }\r
     }\r
 \r
     //\r