diff options
author | Dandan Bi <dandan.bi@intel.com> | 2016-03-14 14:37:55 +0800 |
---|---|---|
committer | Feng Tian <feng.tian@intel.com> | 2016-03-16 10:41:25 +0800 |
commit | c7d310dd169ef84eee1ffab3af763372a363ab4b (patch) | |
tree | 5e44a55e5b67a18b84fd76d0d7c85e667323a807 /MdeModulePkg/Application | |
parent | 41c244b6b992aa39086ab258f4383c8daf85c3b3 (diff) | |
download | edk2-platforms-c7d310dd169ef84eee1ffab3af763372a363ab4b.tar.xz |
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 <dandan.bi@intel.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
Diffstat (limited to 'MdeModulePkg/Application')
-rw-r--r-- | MdeModulePkg/Application/UiApp/FrontPage.c | 7 |
1 files changed, 5 insertions, 2 deletions
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.<BR>
+Copyright (c) 2004 - 2016, Intel Corporation. All rights reserved.<BR>
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);
}
|