Changeset 33709 in vbox for trunk/src/VBox
- Timestamp:
- Nov 2, 2010 7:15:26 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/MachineImpl.cpp
r33708 r33709 396 396 mData->pMachineConfigFile = new settings::MachineConfigFile(&mData->m_strConfigFileFull); 397 397 398 // reject VM UUID duplicates, they can happen if someone 399 // tries to register an already known VM config again 400 if (aParent->findMachine(mData->pMachineConfigFile->uuid, 401 true /* fPermitInaccessible */, 402 false /* aDoSetError */, 403 NULL) != VBOX_E_OBJECT_NOT_FOUND) 404 { 405 throw setError(E_FAIL, 406 tr("Trying to open a VM config '%s' which has the same UUID as an existing virtual machine"), 407 mData->m_strConfigFile.c_str()); 408 } 409 398 410 // use UUID from machine config 399 411 unconst(mData->mUuid) = mData->pMachineConfigFile->uuid;
Note:
See TracChangeset
for help on using the changeset viewer.