VirtualBox

Changeset 79154 in vbox


Ignore:
Timestamp:
Jun 14, 2019 3:38:34 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
131323
Message:

Main: bugref:6913: Fixed the NULL id in the MediumRegisteredEvent during snapshot restoring

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/SnapshotImpl.cpp

    r78829 r79154  
    24152415
    24162416            ComObjPtr<Medium> pParent = pMedium->i_getParent();
     2417            // store the id here because it becomes NULL after deleting storage.
     2418            com::Guid id = pMedium->i_getId();
    24172419            HRESULT rc2 = pMedium->i_deleteStorage(NULL /* aProgress */,
    24182420                                                   true /* aWait */,
     
    24222424            {
    24232425                pMediumsForNotify.insert(pParent);
    2424                 uIdsForNotify[pMedium->i_getId()] = std::pair<DeviceType_T, BOOL>(pMedium->i_getDeviceType(), FALSE);
     2426                uIdsForNotify[id] = std::pair<DeviceType_T, BOOL>(pMedium->i_getDeviceType(), FALSE);
    24252427                pMedium->uninit();
    24262428            }
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