VirtualBox

Changeset 5163 in vbox


Ignore:
Timestamp:
Oct 5, 2007 10:25:12 AM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
25060
Message:

Main: Fixed regression caused by r24978: Don't deassociate hard disks when uninitializing SessionMachine objects.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/MachineImpl.cpp

    r5118 r5163  
    34963496    }
    34973497
    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        }
    35053511    }
    35063512
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette