]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Avoid change the return status from above code which will also be used later.
authorEric Dong <eric.dong@intel.com>
Fri, 23 Jan 2015 05:49:31 +0000 (05:49 +0000)
committerydong10 <ydong10@Edk2>
Fri, 23 Jan 2015 05:49:31 +0000 (05:49 +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@16644 6f19259b-4bc3-4df7-8a09-765794883524

MdeModulePkg/Universal/SetupBrowserDxe/Presentation.c

index 8fd1c088bc19d8cbdca363903847df603154ce1a..4b00b54ce8f3222747a9f22557fcb2120ee56d38 100644 (file)
@@ -1849,6 +1849,7 @@ ProcessCallBackFunction (
   )\r
 {\r
   EFI_STATUS                      Status;\r
+  EFI_STATUS                      InternalStatus;\r
   EFI_BROWSER_ACTION_REQUEST      ActionRequest;\r
   EFI_HII_CONFIG_ACCESS_PROTOCOL  *ConfigAccess;\r
   EFI_HII_VALUE                   *HiiValue;\r
@@ -2038,8 +2039,8 @@ ProcessCallBackFunction (
         //\r
         // Do the question validation.\r
         //\r
-        Status = ValueChangedValidation (gCurrentSelection->FormSet, gCurrentSelection->Form, Statement);\r
-        if (!EFI_ERROR (Status)) {\r
+        InternalStatus = ValueChangedValidation (gCurrentSelection->FormSet, gCurrentSelection->Form, Statement);\r
+        if (!EFI_ERROR (InternalStatus)) {\r
           SetQuestionValue(FormSet, Form, Statement, GetSetValueWithEditBuffer);\r
         }\r
       }\r