summaryrefslogtreecommitdiff
path: root/IntelFrameworkModulePkg
diff options
context:
space:
mode:
authorlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>2010-03-22 12:31:57 +0000
committerlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>2010-03-22 12:31:57 +0000
commit8df1634c8b3e1ecb6149cd3e19f2f35ed1f33b2f (patch)
treeb4ee7a0123df23b345fb809001bccd5627eb71b4 /IntelFrameworkModulePkg
parentb2e5957efe8aaa7853f5dd050f4820b8394a6af0 (diff)
downloadedk2-platforms-8df1634c8b3e1ecb6149cd3e19f2f35ed1f33b2f.tar.xz
Don't create a dummy string with new language.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10302 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'IntelFrameworkModulePkg')
-rw-r--r--IntelFrameworkModulePkg/Universal/BdsDxe/FrontPage.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/IntelFrameworkModulePkg/Universal/BdsDxe/FrontPage.c b/IntelFrameworkModulePkg/Universal/BdsDxe/FrontPage.c
index 48cd70f2f8..39d2e235e3 100644
--- a/IntelFrameworkModulePkg/Universal/BdsDxe/FrontPage.c
+++ b/IntelFrameworkModulePkg/Universal/BdsDxe/FrontPage.c
@@ -310,7 +310,6 @@ InitializeFrontPage (
EFI_IFR_GUID_LABEL *StartLabel;
EFI_IFR_GUID_LABEL *EndLabel;
BOOLEAN FirstFlag;
- EFI_STRING_ID Temp;
if (InitializeHiiData) {
//
@@ -425,13 +424,11 @@ InitializeFrontPage (
GetNextLanguage (&LangCode, Lang);
OptionCount ++;
}
- gFrontPagePrivate.LanguageToken = AllocatePool ((OptionCount + 1) * sizeof (EFI_STRING_ID));
+ gFrontPagePrivate.LanguageToken = AllocatePool (OptionCount * sizeof (EFI_STRING_ID));
ASSERT (gFrontPagePrivate.LanguageToken != NULL);
FirstFlag = TRUE;
}
- Status = gHiiString->NewString (gHiiString, HiiHandle, &Temp, "de-DE", L"Dedede", L"TEST", NULL);
-
OptionCount = 0;
LangCode = LanguageString;
while (*LangCode != 0) {