mirror of https://github.com/acidanthera/audk.git
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
This commit is contained in:
parent
b2e5957efe
commit
8df1634c8b
|
@ -310,7 +310,6 @@ InitializeFrontPage (
|
||||||
EFI_IFR_GUID_LABEL *StartLabel;
|
EFI_IFR_GUID_LABEL *StartLabel;
|
||||||
EFI_IFR_GUID_LABEL *EndLabel;
|
EFI_IFR_GUID_LABEL *EndLabel;
|
||||||
BOOLEAN FirstFlag;
|
BOOLEAN FirstFlag;
|
||||||
EFI_STRING_ID Temp;
|
|
||||||
|
|
||||||
if (InitializeHiiData) {
|
if (InitializeHiiData) {
|
||||||
//
|
//
|
||||||
|
@ -425,13 +424,11 @@ InitializeFrontPage (
|
||||||
GetNextLanguage (&LangCode, Lang);
|
GetNextLanguage (&LangCode, Lang);
|
||||||
OptionCount ++;
|
OptionCount ++;
|
||||||
}
|
}
|
||||||
gFrontPagePrivate.LanguageToken = AllocatePool ((OptionCount + 1) * sizeof (EFI_STRING_ID));
|
gFrontPagePrivate.LanguageToken = AllocatePool (OptionCount * sizeof (EFI_STRING_ID));
|
||||||
ASSERT (gFrontPagePrivate.LanguageToken != NULL);
|
ASSERT (gFrontPagePrivate.LanguageToken != NULL);
|
||||||
FirstFlag = TRUE;
|
FirstFlag = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
Status = gHiiString->NewString (gHiiString, HiiHandle, &Temp, "de-DE", L"Dedede", L"TEST", NULL);
|
|
||||||
|
|
||||||
OptionCount = 0;
|
OptionCount = 0;
|
||||||
LangCode = LanguageString;
|
LangCode = LanguageString;
|
||||||
while (*LangCode != 0) {
|
while (*LangCode != 0) {
|
||||||
|
|
Loading…
Reference in New Issue