diff options
author | Eric Dong <eric.dong@intel.com> | 2015-01-23 05:49:31 +0000 |
---|---|---|
committer | ydong10 <ydong10@Edk2> | 2015-01-23 05:49:31 +0000 |
commit | fc2e7502663ee5891d3c0f6d7792a8277df50745 (patch) | |
tree | 81aeaf535f4eeb5f4a03dbfbb8e03c28608a26cf /MdeModulePkg/Universal | |
parent | 44cbe89ec8ed1fd6e378f92e16b5a5e9e3781bcf (diff) | |
download | edk2-platforms-fc2e7502663ee5891d3c0f6d7792a8277df50745.tar.xz |
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 <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
Diffstat (limited to 'MdeModulePkg/Universal')
-rw-r--r-- | MdeModulePkg/Universal/SetupBrowserDxe/Presentation.c | 5 |
1 files changed, 3 insertions, 2 deletions
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);
}
}
|