VirtualBox

Changeset 108806 in vbox for trunk/src


Ignore:
Timestamp:
Mar 31, 2025 6:04:24 PM (2 weeks ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
168249
Message:

Main/Snapshot: Address a regression introduced in r150959 in
Snapshot::i_sharesSavedStateFile() where it would always report that a
nested online snapshot's state file was referenced by another snapshot
even if it wasn't. This would then cause i_deleteSnapshotHandler() to
not delete that live snapshot's saved state (.sav) file when deleting
the snapshot.

File:
1 edited

Legend:

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

    r108421 r108806  
    782782        const Utf8Str &path = pSnapshot->m->pMachine->mSSData->strStateFilePath;
    783783
    784         if ((!pSnapshotToIgnore || pSnapshotToIgnore != this) && path.isNotEmpty())
     784        if ((!pSnapshotToIgnore || pSnapshotToIgnore != pSnapshot) && path.isNotEmpty())
    785785            if (path == strPath)
    786786                return true;
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