Changeset 86125 in vbox for trunk/src/VBox
- Timestamp:
- Sep 14, 2020 5:55:07 PM (4 years ago)
- Location:
- trunk/src/VBox/Main/src-server
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/MachineImpl.cpp
r85908 r86125 3516 3516 3517 3517 if ( (pAttachTemp = i_findAttachment(*mMediumAttachments.data(), medium)) 3518 && !medium.isNull() && medium->i_getType() != MediumType_Readonly 3519 && medium->i_getDeviceType() != DeviceType_DVD 3518 && !medium.isNull() 3519 && ( medium->i_getType() != MediumType_Readonly 3520 || medium->i_getDeviceType() != DeviceType_DVD) 3520 3521 ) 3521 3522 return setError(VBOX_E_OBJECT_IN_USE, -
trunk/src/VBox/Main/src-server/MediumImpl.cpp
r86052 r86125 4341 4341 { 4342 4342 AutoReadLock arlock(this COMMA_LOCKVAL_SRC_POS); 4343 fDvd = m->type == MediumType_Readonly || m->devType == DeviceType_DVD; 4343 /* 4344 * Check the medium is DVD and readonly. It's for the case if DVD 4345 * will be able to be writable sometime in the future. 4346 */ 4347 fDvd = m->type == MediumType_Readonly && m->devType == DeviceType_DVD; 4344 4348 } 4345 4349 … … 4350 4354 if (aSnapshotId.isZero()) 4351 4355 { 4352 // Allow MediumType_Readonly mediums and DVD in particularto be attached twice.4356 // Allow DVD having MediumType_Readonly to be attached twice. 4353 4357 // (the medium already had been added to back reference) 4354 4358 if (fDvd)
Note:
See TracChangeset
for help on using the changeset viewer.