From fc2e7502663ee5891d3c0f6d7792a8277df50745 Mon Sep 17 00:00:00 2001 From: Eric Dong Date: Fri, 23 Jan 2015 05:49:31 +0000 Subject: Avoid change the return status from above code which will also be used later. 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@16644 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Universal/SetupBrowserDxe/Presentation.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'MdeModulePkg') diff --git a/MdeModulePkg/Universal/SetupBrowserDxe/Presentation.c b/MdeModulePkg/Universal/SetupBrowserDxe/Presentation.c index 8fd1c088bc..4b00b54ce8 100644 --- a/MdeModulePkg/Universal/SetupBrowserDxe/Presentation.c +++ b/MdeModulePkg/Universal/SetupBrowserDxe/Presentation.c @@ -1849,6 +1849,7 @@ ProcessCallBackFunction ( ) { EFI_STATUS Status; + EFI_STATUS InternalStatus; EFI_BROWSER_ACTION_REQUEST ActionRequest; EFI_HII_CONFIG_ACCESS_PROTOCOL *ConfigAccess; EFI_HII_VALUE *HiiValue; @@ -2038,8 +2039,8 @@ ProcessCallBackFunction ( // // Do the question validation. // - Status = ValueChangedValidation (gCurrentSelection->FormSet, gCurrentSelection->Form, Statement); - if (!EFI_ERROR (Status)) { + InternalStatus = ValueChangedValidation (gCurrentSelection->FormSet, gCurrentSelection->Form, Statement); + if (!EFI_ERROR (InternalStatus)) { SetQuestionValue(FormSet, Form, Statement, GetSetValueWithEditBuffer); } } -- cgit v1.2.3