Changeset 5163 in vbox
- Timestamp:
- Oct 5, 2007 10:25:12 AM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 25060
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/MachineImpl.cpp
r5118 r5163 3496 3496 } 3497 3497 3498 /* De-associate hard disks */ 3499 for (HDData::HDAttachmentList::const_iterator it = 3500 mHDData->mHDAttachments.begin(); 3501 it != mHDData->mHDAttachments.end(); 3502 ++ it) 3503 { 3504 (*it)->hardDisk()->setMachineId (Guid()); 3498 /* Deassociate hard disks (only when a real Machine or a SnapshotMachine 3499 * instance is uninitialized; SessionMachine instances refer to real 3500 * Machine hard disks). This is necessary for a clean re-initialization of 3501 * the VM after successfully re-checking the accessibility state. */ 3502 if (mType == IsMachine || mType == IsSnapshotMachine) 3503 { 3504 for (HDData::HDAttachmentList::const_iterator it = 3505 mHDData->mHDAttachments.begin(); 3506 it != mHDData->mHDAttachments.end(); 3507 ++ it) 3508 { 3509 (*it)->hardDisk()->setMachineId (Guid()); 3510 } 3505 3511 } 3506 3512
Note:
See TracChangeset
for help on using the changeset viewer.