VirtualBox

Ignore:
Timestamp:
Nov 14, 2008 4:17:20 PM (16 years ago)
Author:
vboxsync
Message:

Main: Added ISystemProperties::defaultHardDiskFormat.

File:
1 edited

Legend:

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

    r13842 r14224  
    10601060    /* we don't access non-const data members so no need to lock */
    10611061
     1062    Bstr format = aFormat;
     1063    if (format.isEmpty())
     1064    {
     1065        AutoReadLock propsLock (systemProperties());
     1066        format = systemProperties()->defaultHardDiskFormat();
     1067    }
     1068
    10621069    HRESULT rc = E_FAIL;
    10631070
    10641071    ComObjPtr <HardDisk2> hardDisk;
    10651072    hardDisk.createObject();
    1066     rc = hardDisk->init (this, aFormat, aLocation);
     1073    rc = hardDisk->init (this, format, aLocation);
    10671074
    10681075    if (SUCCEEDED (rc))
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