mirror of https://github.com/acidanthera/audk.git
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:
parent
c28306c3d6
commit
81c1460695
|
@ -195,11 +195,13 @@ UiSupportLibCallbackHandler (
|
|||
// Do nothing for other UEFI Action. Only do call back when data is changed.
|
||||
//
|
||||
*Status = EFI_UNSUPPORTED;
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
if (Action == EFI_BROWSER_ACTION_CHANGED) {
|
||||
if ((Value == NULL) || (ActionRequest == NULL)) {
|
||||
*Status = EFI_INVALID_PARAMETER;
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
*Status = EFI_SUCCESS;
|
||||
|
|
Loading…
Reference in New Issue