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:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user