VirtualBox

Changeset 48738 in vbox for trunk


Ignore:
Timestamp:
Sep 27, 2013 2:02:21 PM (11 years ago)
Author:
vboxsync
Message:

BdsMisc.c / BdsLibVariableToOption: We need OptionName to be set for our hacks in BdsLibBootViaBootOption and possibly other places. Seems nobody else cares or sets it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/EFI/Firmware/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsMisc.c

    r48730 r48738  
    744744  Option->LoadOptionsSize = LoadOptionsSize;
    745745
     746#ifdef VBOX  /* We need the OptionName later for Mac OS x related "Boot0080" hacks. */
     747  TempSize = StrSize (VariableName);
     748  Option->OptionName = AllocateZeroPool (TempSize);
     749  ASSERT(Option->OptionName != NULL);
     750  CopyMem (Option->OptionName, VariableName, TempSize);
     751#endif
     752
    746753  //
    747754  // Get the value from VariableName Unicode string
     
    771778  FreePool (Option->DevicePath);
    772779  FreePool (Option->LoadOptions);
     780#ifdef VBOX
     781  FreePool (Option->OptionName);
     782#endif
    773783  FreePool (Option);
    774784  VBoxLogFlowFuncLeave();
Note: See TracChangeset for help on using the changeset viewer.

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