IntelFrameworkModulePkg/Universal/BdsDxe: Fix assertion
Fix an assertion that prevented the boot menu to show up when the coreboot string is very long. Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
This commit is contained in:
committed by
Matt DeVillier
parent
8f008298cc
commit
47794944e6
@ -908,10 +908,10 @@ UpdateFrontPageStrings (
|
||||
Str2Index = SmbiosTable.Type0->BiosReleaseDate;
|
||||
GetOptionalStringByIndex ((CHAR8*)((UINT8*)SmbiosTable.Raw + SmbiosTable.Hdr->Length), StrIndex, &NewString);
|
||||
GetOptionalStringByIndex ((CHAR8*)((UINT8*)SmbiosTable.Raw + SmbiosTable.Hdr->Length), Str2Index, &NewString2);
|
||||
StrCatS (NewString3, 0x40 / sizeof (CHAR16), L"FW: ");
|
||||
StrCatS (NewString3, 0x40 / sizeof (CHAR16), NewString);
|
||||
StrCatS (NewString3, 0x40 / sizeof (CHAR16), L" ");
|
||||
StrCatS (NewString3, 0x40 / sizeof (CHAR16), NewString2);
|
||||
StrCatS (NewString3, 0x60 / sizeof (CHAR16), L"FW: ");
|
||||
StrCatS (NewString3, 0x60 / sizeof (CHAR16), NewString);
|
||||
StrCatS (NewString3, 0x60 / sizeof (CHAR16), L" ");
|
||||
StrCatS (NewString3, 0x60 / sizeof (CHAR16), NewString2);
|
||||
TokenToUpdate = STRING_TOKEN (STR_FRONT_PAGE_BIOS_VERSION);
|
||||
HiiSetString (gFrontPagePrivate.HiiHandle, TokenToUpdate, NewString3, NULL);
|
||||
FreePool (NewString);
|
||||
|
Reference in New Issue
Block a user