MdeModulePkg/UiApp: Exit function when parameter is unsupported or invalid

When the parameter is unsupported or invalid,
should exit the function.

Cc: Qiu Shumin <shumin.qiu@intel.com>
Cc: Eric Dong <eric.dong@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Dandan Bi <dandan.bi@intel.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Qiu Shumin <shumin.qiu@intel.com>
This commit is contained in:
Dandan Bi 2016-05-17 11:25:34 +08:00 committed by Star Zeng
parent c28306c3d6
commit 81c1460695
1 changed files with 2 additions and 0 deletions

View File

@ -195,11 +195,13 @@ UiSupportLibCallbackHandler (
// Do nothing for other UEFI Action. Only do call back when data is changed. // Do nothing for other UEFI Action. Only do call back when data is changed.
// //
*Status = EFI_UNSUPPORTED; *Status = EFI_UNSUPPORTED;
return TRUE;
} }
if (Action == EFI_BROWSER_ACTION_CHANGED) { if (Action == EFI_BROWSER_ACTION_CHANGED) {
if ((Value == NULL) || (ActionRequest == NULL)) { if ((Value == NULL) || (ActionRequest == NULL)) {
*Status = EFI_INVALID_PARAMETER; *Status = EFI_INVALID_PARAMETER;
return TRUE;
} }
*Status = EFI_SUCCESS; *Status = EFI_SUCCESS;