mirror of
https://github.com/acidanthera/OpenCorePkg.git
synced 2025-12-08 19:25:01 +00:00
OpenCanopy: Update to use existing utility method
This commit is contained in:
parent
800d0b7e22
commit
4637cc7ca8
@ -1914,12 +1914,7 @@ BootPickerViewInitialize (
|
||||
mBootPickerVersionLabel.Obj.OffsetY = 0;
|
||||
} else {
|
||||
DestLen = AsciiStrLen (GuiContext->PickerContext->TitleSuffix);
|
||||
UString = AllocateZeroPool ((DestLen + 1) * sizeof(CHAR16));
|
||||
if (UString == NULL) {
|
||||
return EFI_OUT_OF_RESOURCES;
|
||||
}
|
||||
|
||||
AsciiStrToUnicodeStrS (GuiContext->PickerContext->TitleSuffix, UString, DestLen + 1);
|
||||
UString = AsciiStrCopyToUnicode (GuiContext->PickerContext->TitleSuffix, DestLen);
|
||||
|
||||
Result = GuiGetLabel (
|
||||
&mVersionLabelImage,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user