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
This commit is contained in:
Eric Dong 2015-01-23 05:49:31 +00:00 committed by ydong10
parent 44cbe89ec8
commit fc2e750266
1 changed files with 3 additions and 2 deletions

View File

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