VirtualBox

Changeset 5559 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Oct 30, 2007 4:04:51 PM (17 years ago)
Author:
vboxsync
Message:

Main: Fixed: VBoxSVC would crash on attempt to create a VM with the duplicate name.

File:
1 edited

Legend:

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

    r5390 r5559  
    390390    mData->mConfigFileFull = configFileFull;
    391391
     392    /* start with accessible */
    392393    mData->mAccessible = TRUE;
    393394
     
    430431                        mData->mConfigFileFull.raw(), vrc);
    431432        }
     433
     434        /* reset mAccessible to make sure uninit() called by the AutoInitSpan
     435         * destructor will not call uninitDataAndChildObjects() (we haven't
     436         * initialized anything yet) */
     437        if (FAILED (rc))
     438            mData->mAccessible = FALSE;
    432439    }
    433440
     
    36613668     * disk attachments will already be uninitialized and deleted, so this
    36623669     * code will not affect them. */
    3663     if (mType == IsMachine || mType == IsSnapshotMachine)
     3670    if (!!mHDData && (mType == IsMachine || mType == IsSnapshotMachine))
    36643671    {
    36653672        for (HDData::HDAttachmentList::const_iterator it =
     
    36803687
    36813688    /* free data structures (the essential mData structure is not freed here
    3682      * since it still may be in use) */
     3689     * since it may be still in use) */
    36833690    mHDData.free();
    36843691    mHWData.free();
Note: See TracChangeset for help on using the changeset viewer.

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