summaryrefslogtreecommitdiffstats
path: root/MdeModulePkg/Application
diff options
context:
space:
mode:
authorDandan Bi <dandan.bi@intel.com>2016-06-08 16:46:55 +0800
committerStar Zeng <star.zeng@intel.com>2016-06-14 14:10:44 +0800
commit7258076baee1fad8e07684140bcca614fdabfcc7 (patch)
tree502680e85161ec0270dfdab3ef4fc79b9b06f7c0 /MdeModulePkg/Application
parent62ade6d23362e7555572291ef82fdea122c624e4 (diff)
downloadedk2-7258076baee1fad8e07684140bcca614fdabfcc7.tar.gz
edk2-7258076baee1fad8e07684140bcca614fdabfcc7.tar.bz2
edk2-7258076baee1fad8e07684140bcca614fdabfcc7.zip
MdeModulePkg/UiApp: Fix the incorrect use of the HiiHandle
In current code, when adding string package, it will return 'gStringPackHandle'. But the code use the 'gHiiHandle' to get string. It is incorrect. This patch is to fix this issue. 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>
Diffstat (limited to 'MdeModulePkg/Application')
-rw-r--r--MdeModulePkg/Application/UiApp/FrontPageCustomizedUiSupport.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/MdeModulePkg/Application/UiApp/FrontPageCustomizedUiSupport.c b/MdeModulePkg/Application/UiApp/FrontPageCustomizedUiSupport.c
index dfb37ec9e1..dc5d1c6c40 100644
--- a/MdeModulePkg/Application/UiApp/FrontPageCustomizedUiSupport.c
+++ b/MdeModulePkg/Application/UiApp/FrontPageCustomizedUiSupport.c
@@ -55,7 +55,7 @@ typedef struct {
CHAR8 *gLanguageString;
EFI_STRING_ID *gLanguageToken;
UI_HII_DRIVER_INSTANCE *gHiiDriverList;
-EFI_HII_HANDLE gHiiHandle;
+extern EFI_HII_HANDLE gStringPackHandle;
/**
@@ -589,7 +589,7 @@ UiListThirdPartyDrivers (
String = HiiGetString (HiiHandles[Index], Token, NULL);
if (String == NULL) {
- String = HiiGetString (gHiiHandle, STRING_TOKEN (STR_MISSING_STRING), NULL);
+ String = HiiGetString (gStringPackHandle, STRING_TOKEN (STR_MISSING_STRING), NULL);
ASSERT (String != NULL);
} else if (SpecialHandlerFn != NULL) {
//
@@ -607,7 +607,7 @@ UiListThirdPartyDrivers (
String = HiiGetString (HiiHandles[Index], TokenHelp, NULL);
if (String == NULL) {
- String = HiiGetString (gHiiHandle, STRING_TOKEN (STR_MISSING_STRING), NULL);
+ String = HiiGetString (gStringPackHandle, STRING_TOKEN (STR_MISSING_STRING), NULL);
ASSERT (String != NULL);
}
DriverListPtr[Count].HelpId = HiiSetString (HiiHandle, 0, String, NULL);