VirtualBox

Changeset 30884 in vbox


Ignore:
Timestamp:
Jul 16, 2010 4:25:38 PM (15 years ago)
Author:
vboxsync
Message:

Main/Snapshot: Delete the current state saved file before copying the saved state file from the snapshot when restoring a snapshot. Fixes error messages when an earlier restore operation failed, usually due to running out of disk space.

File:
1 edited

Legend:

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

    r30764 r30884  
    17971797
    17981798                /* copy the state file */
     1799                RTFileDelete(stateFilePath.c_str());
    17991800                int vrc = RTFileCopyEx(snapStateFilePath.c_str(),
    18001801                                       stateFilePath.c_str(),
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