VirtualBox

Changeset 17230 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Mar 2, 2009 9:52:33 AM (16 years ago)
Author:
vboxsync
Message:

EFI: tweaks, SATA config in BIOS-less case

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/ConsoleImpl2.cpp

    r17217 r17230  
    833833
    834834            /* Needed configuration values for the bios. */
    835             rc = CFGMR3InsertString(pBiosCfg, "SataHardDiskDevice", "ahci");        RC_CHECK();
     835            if (pBiosCfg)
     836            {
     837                rc = CFGMR3InsertString(pBiosCfg, "SataHardDiskDevice", "ahci");        RC_CHECK();
     838            }
    836839
    837840            for (uint32_t i = 0; i < 4; i++)
     
    845848                hrc = sataController->GetIDEEmulationPort(i, &lPortNumber);             H();
    846849                rc = CFGMR3InsertInteger(pCfg, s_apszConfig[i], lPortNumber);           RC_CHECK();
    847                 rc = CFGMR3InsertInteger(pBiosCfg, s_apszBiosConfig[i], lPortNumber);   RC_CHECK();
     850                if (pBiosCfg)
     851                {
     852                    rc = CFGMR3InsertInteger(pBiosCfg, s_apszBiosConfig[i], lPortNumber);   RC_CHECK();
     853                }
    848854            }
    849855
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