summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Application
diff options
context:
space:
mode:
authorDandan Bi <dandan.bi@intel.com>2016-05-17 11:25:34 +0800
committerStar Zeng <star.zeng@intel.com>2016-05-18 21:53:57 +0800
commit81c1460695f783a3f91431b2babea623556a7f5d (patch)
tree93c1c2339f7d49d833fec59f34c33f758bd259e8 /MdeModulePkg/Application
parentc28306c3d6e0c7721abc937d8f47c3f1ccecf323 (diff)
downloadedk2-platforms-81c1460695f783a3f91431b2babea623556a7f5d.tar.xz
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>
Diffstat (limited to 'MdeModulePkg/Application')
-rw-r--r--MdeModulePkg/Application/UiApp/FrontPageCustomizedUiSupport.c2
1 files changed, 2 insertions, 0 deletions
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;