Changeset 14224 in vbox for trunk/src/VBox/Main/VirtualBoxImpl.cpp
- Timestamp:
- Nov 14, 2008 4:17:20 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/VirtualBoxImpl.cpp
r13842 r14224 1060 1060 /* we don't access non-const data members so no need to lock */ 1061 1061 1062 Bstr format = aFormat; 1063 if (format.isEmpty()) 1064 { 1065 AutoReadLock propsLock (systemProperties()); 1066 format = systemProperties()->defaultHardDiskFormat(); 1067 } 1068 1062 1069 HRESULT rc = E_FAIL; 1063 1070 1064 1071 ComObjPtr <HardDisk2> hardDisk; 1065 1072 hardDisk.createObject(); 1066 rc = hardDisk->init (this, aFormat, aLocation);1073 rc = hardDisk->init (this, format, aLocation); 1067 1074 1068 1075 if (SUCCEEDED (rc))
Note:
See TracChangeset
for help on using the changeset viewer.