VirtualBox

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


Ignore:
Timestamp:
Jun 16, 2017 8:21:10 AM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
116163
Message:

Main/Snapshot: Pass the restored snapshot ID as part of the event, for consistency. The old behavior (always passing a zero uuid) was an artifact from the days when snapshot restoring was signaled as a snapshot deletion with zero uuid.

File:
1 edited

Legend:

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

    r66126 r67433  
    21112111
    21122112    HRESULT rc = S_OK;
     2113    Guid snapshotId;
    21132114
    21142115    try
     
    21492150            /* remember the timestamp of the snapshot we're restoring from */
    21502151            snapshotTimeStamp = task.m_pSnapshot->i_getTimeStamp();
     2152
     2153            // save the snapshot ID (paranoia, here we hold the lock)
     2154            snapshotId = task.m_pSnapshot->i_getId();
    21512155
    21522156            ComPtr<SnapshotMachine> pSnapshotMachine(task.m_pSnapshot->i_getSnapshotMachine());
     
    23332337
    23342338    if (SUCCEEDED(rc))
    2335         mParent->i_onSnapshotRestored(mData->mUuid, Guid());
     2339        mParent->i_onSnapshotRestored(mData->mUuid, snapshotId);
    23362340
    23372341    LogFlowThisFunc(("Done restoring snapshot (rc=%08X)\n", rc));
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