- Timestamp:
- May 10, 2012 2:26:04 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageDisk.cpp
r41237 r41238 171 171 172 172 if (!fSilent) 173 CHECK_ERROR(a->virtualBox, FindMedium(Bstr(pszFilenameOrUuid).raw(), 174 enmDevType, pMedium.asOutParam())); 173 CHECK_ERROR(a->virtualBox, OpenMedium(Bstr(pszFilenameOrUuid).raw(), 174 enmDevType, 175 AccessMode_ReadWrite, 176 /*fForceNewUidOnOpen */ false, 177 pMedium.asOutParam())); 175 178 else 176 rc = a->virtualBox->FindMedium(Bstr(pszFilenameOrUuid).raw(), 177 enmDevType, pMedium.asOutParam()); 179 rc = a->virtualBox->OpenMedium(Bstr(pszFilenameOrUuid).raw(), 180 enmDevType, 181 AccessMode_ReadWrite, 182 /*fForceNewUidOnOpen */ false, 183 pMedium.asOutParam()); 178 184 return rc; 179 185 } … … 200 206 } 201 207 202 rc = a->virtualBox->FindMedium(Bstr(pszFilenameOrUuid).raw(), enmDevType, 208 rc = a->virtualBox->OpenMedium(Bstr(pszFilenameOrUuid).raw(), 209 enmDevType, 210 AccessMode_ReadWrite, 211 /*fForceNewUidOnOpen */ false, 203 212 pMedium.asOutParam()); 204 213 /* If the medium is unknown try to open it. */
Note:
See TracChangeset
for help on using the changeset viewer.