VirtualBox

Ignore:
Timestamp:
Mar 31, 2025 11:31:09 AM (2 weeks ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
168237
Message:

Devices/EFI/FirmwareNew: Merge edk2-stable202502 from the vendor branch and make it build for the important platforms, bugref:4643

Location:
trunk/src/VBox/Devices/EFI/FirmwareNew
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/EFI/FirmwareNew

  • trunk/src/VBox/Devices/EFI/FirmwareNew/ShellPkg/Library/UefiShellDebug1CommandsLib/EditMenuBar.c

    r99404 r108794  
    108108  for (Item = MenuItems; Item != NULL && Item->Function != NULL; Item++) {
    109109    NameString = HiiGetString (gShellDebug1HiiHandle, Item->NameToken, NULL);
     110    if (NameString == NULL) {
     111      return EFI_INVALID_PARAMETER;
     112    }
    110113
    111114    Width = MAX ((StrLen (NameString) + 6), 20);
     
    116119
    117120    FunctionKeyString = HiiGetString (gShellDebug1HiiHandle, Item->FunctionKeyToken, NULL);
     121    if (FunctionKeyString == NULL) {
     122      FreePool (NameString);
     123      return EFI_INVALID_PARAMETER;
     124    }
    118125
    119126    ShellPrintEx ((INT32)(Col) - 1, (INT32)(Row) - 1, L"%E%s%N  %H%s%N  ", FunctionKeyString, NameString);
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette