Changeset 18162 in vbox for trunk/src/VBox/Main/VirtualBoxImpl.cpp
- Timestamp:
- Mar 23, 2009 7:28:13 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/VirtualBoxImpl.cpp
r18049 r18162 1125 1125 ComObjPtr<HardDisk> hardDisk; 1126 1126 hardDisk.createObject(); 1127 rc = hardDisk->init 1127 rc = hardDisk->init(this, format, aLocation); 1128 1128 1129 1129 if (SUCCEEDED (rc)) … … 1133 1133 } 1134 1134 1135 STDMETHODIMP VirtualBox::OpenHardDisk(IN_BSTR aLocation, 1136 IHardDisk **aHardDisk) 1135 STDMETHODIMP VirtualBox::OpenHardDisk(IN_BSTR aLocation, BOOL fWrite, IHardDisk **aHardDisk) 1137 1136 { 1138 1137 CheckComArgNotNull(aLocation); … … 1148 1147 ComObjPtr<HardDisk> hardDisk; 1149 1148 hardDisk.createObject(); 1150 rc = hardDisk->init (this, aLocation); 1149 rc = hardDisk->init(this, 1150 aLocation, 1151 (fWrite) ? HardDisk::OpenReadWrite : HardDisk::OpenReadOnly ); 1151 1152 1152 1153 if (SUCCEEDED (rc)) … … 3091 3092 ComObjPtr<HardDisk> hardDisk; 3092 3093 hardDisk.createObject(); 3093 rc = hardDisk->init 3094 rc = hardDisk->init(this, NULL, *it); 3094 3095 CheckComRCBreakRC (rc); 3095 3096
Note:
See TracChangeset
for help on using the changeset viewer.