VirtualBox

Changeset 33108 in vbox


Ignore:
Timestamp:
Oct 13, 2010 2:31:56 PM (14 years ago)
Author:
vboxsync
Message:

Main: crash fix for media unmounting (yesterday's regression)

Location:
trunk/src/VBox/Main
Files:
2 edited

Legend:

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

    r33004 r33108  
    33103310{
    33113311    LogFlowFunc(("pConsole=%p uInstance=%u pszDevice=%p:{%s} enmBus=%u, aMediumAtt=%p, fForce=%d\n",
    3312                  pConsole, uInstance, pcszDevice, enmBus, fForce));
     3312                 pConsole, uInstance, pcszDevice, pcszDevice, enmBus, aMediumAtt, fForce));
    33133313
    33143314    AssertReturn(pConsole, VERR_INVALID_PARAMETER);
  • trunk/src/VBox/Main/MachineImpl.cpp

    r33078 r33108  
    38603860            oldmedium->removeBackReference(mData->mUuid);
    38613861        if (!medium.isNull())
     3862        {
    38623863            medium->addBackReference(mData->mUuid);
     3864            // and decide which medium registry to use now that the medium is attached:
     3865            if (mData->pMachineConfigFile->canHaveOwnMediaRegistry())
     3866                // machine XML is VirtualBox 4.0 or higher:
     3867                medium->addRegistry(getId());        // machine UUID
     3868            else
     3869                medium->addRegistry(mParent->getGlobalRegistryId()); // VirtualBox global registry UUID
     3870        }
     3871
    38633872        pAttach->updateMedium(medium);
    3864 
    3865         // and decide which medium registry to use now that the medium is attached:
    3866         if (mData->pMachineConfigFile->canHaveOwnMediaRegistry())
    3867             // machine XML is VirtualBox 4.0 or higher:
    3868             medium->addRegistry(getId());        // machine UUID
    3869         else
    3870             medium->addRegistry(mParent->getGlobalRegistryId()); // VirtualBox global registry UUID
    38713873
    38723874        setModified(IsModified_Storage);
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