From 81c1460695f783a3f91431b2babea623556a7f5d Mon Sep 17 00:00:00 2001 From: Dandan Bi Date: Tue, 17 May 2016 11:25:34 +0800 Subject: MdeModulePkg/UiApp: Exit function when parameter is unsupported or invalid When the parameter is unsupported or invalid, should exit the function. Cc: Qiu Shumin Cc: Eric Dong Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dandan Bi Reviewed-by: Eric Dong Reviewed-by: Qiu Shumin --- MdeModulePkg/Application/UiApp/FrontPageCustomizedUiSupport.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MdeModulePkg/Application/UiApp/FrontPageCustomizedUiSupport.c b/MdeModulePkg/Application/UiApp/FrontPageCustomizedUiSupport.c index 80450a5ac4..b838222106 100644 --- a/MdeModulePkg/Application/UiApp/FrontPageCustomizedUiSupport.c +++ b/MdeModulePkg/Application/UiApp/FrontPageCustomizedUiSupport.c @@ -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; -- cgit v1.2.3