Skip to content

Commit

Permalink
OpenCanopy: Update to use existing utility method
Browse files Browse the repository at this point in the history
  • Loading branch information
mikebeaton committed Apr 18, 2021
1 parent 800d0b7 commit 4637cc7
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions Platform/OpenCanopy/Views/BootPicker.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 4637cc7

Please sign in to comment.