- Timestamp:
- Jan 18, 2011 2:24:36 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/MachineImpl.cpp
r35608 r35610 7530 7530 case DeviceType_DVD: 7531 7531 if (dev.strHostDriveSrc.isNotEmpty()) 7532 {7533 7532 rc = mParent->host()->findHostDriveByName(dev.deviceType, dev.strHostDriveSrc, false /* fRefresh */, medium); 7534 if (rc == VBOX_E_OBJECT_NOT_FOUND)7535 {7536 /* This is not an error. The host drive might have vanished,7537 * so just go ahead without this medium attachment. */7538 rc = S_OK;7539 }7540 }7541 7533 else 7542 mParent->findRemoveableMedium(dev.deviceType, 7543 dev.uuid, 7544 false /* fRefresh */, 7545 false /* aSetError */, 7546 medium); 7547 // note: do NOT fail if a removeable medium cannot be found, silently ignore the error completely 7534 rc = mParent->findRemoveableMedium(dev.deviceType, 7535 dev.uuid, 7536 false /* fRefresh */, 7537 false /* aSetError */, 7538 medium); 7539 if (rc == VBOX_E_OBJECT_NOT_FOUND) 7540 // This is not an error. The host drive or UUID might have vanished, so just go ahead without this removeable medium attachment 7541 rc = S_OK; 7548 7542 break; 7549 7543
Note:
See TracChangeset
for help on using the changeset viewer.