From c7d310dd169ef84eee1ffab3af763372a363ab4b Mon Sep 17 00:00:00 2001 From: Dandan Bi Date: Mon, 14 Mar 2016 14:37:55 +0800 Subject: MdeModulePkg: Refine the UI code Remove the ASSERT in UI code that may be triggered, and clean up the useless code. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dandan Bi Reviewed-by: Eric Dong --- MdeModulePkg/Application/UiApp/FrontPage.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'MdeModulePkg/Application') diff --git a/MdeModulePkg/Application/UiApp/FrontPage.c b/MdeModulePkg/Application/UiApp/FrontPage.c index 5c67a3fa91..9cc877bedb 100644 --- a/MdeModulePkg/Application/UiApp/FrontPage.c +++ b/MdeModulePkg/Application/UiApp/FrontPage.c @@ -1,7 +1,7 @@ /** @file FrontPage routines to handle the callbacks and browser calls -Copyright (c) 2004 - 2015, Intel Corporation. All rights reserved.
+Copyright (c) 2004 - 2016, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -420,7 +420,10 @@ FrontPageCallback ( AsciiStrSize (Lang), Lang ); - ASSERT_EFI_ERROR(Status); + if (EFI_ERROR (Status)) { + FreePool (Lang); + return EFI_DEVICE_ERROR; + } } else { ASSERT (FALSE); } -- cgit v1.2.3