Increase size of buffer for DMI information
This commit is contained in:
committed by
Tim Crawford
parent
061df3962f
commit
d193b18023
@ -920,16 +920,16 @@ UpdateFrontPageStrings (
|
||||
SmbiosTable = GetSmbiosTableFromType (EntryPoint, EFI_SMBIOS_TYPE_BIOS_INFORMATION , 0);
|
||||
if (SmbiosTable.Raw == NULL) {
|
||||
} else {
|
||||
NewString3 = AllocateZeroPool (0x60);
|
||||
NewString3 = AllocateZeroPool (0xC0);
|
||||
|
||||
StrIndex = SmbiosTable.Type0->BiosVersion;
|
||||
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, 0x60 / sizeof (CHAR16), L"FW: ");
|
||||
StrCatS (NewString3, 0x60 / sizeof (CHAR16), NewString);
|
||||
StrCatS (NewString3, 0x60 / sizeof (CHAR16), L" ");
|
||||
StrCatS (NewString3, 0x60 / sizeof (CHAR16), NewString2);
|
||||
StrCatS (NewString3, 0x80 / sizeof (CHAR16), L"FW: ");
|
||||
StrCatS (NewString3, 0x80 / sizeof (CHAR16), NewString);
|
||||
StrCatS (NewString3, 0x80 / sizeof (CHAR16), L" ");
|
||||
StrCatS (NewString3, 0x80 / 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