VirtualBox

Changeset 93548 in vbox for trunk/src/VBox/Main/include


Ignore:
Timestamp:
Feb 2, 2022 6:08:28 PM (3 years ago)
Author:
vboxsync
Message:

Main/Machine: When saving the settings fails when creating a new file, delete the file because it usually does not contain anything (or something invalid). Leaving behind such files in the failure case sabotages retrying, since it will then fail with VERR_ALREADY_EXISTS.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/MachineImpl.h

    r93190 r93548  
    682682    };
    683683
    684     HRESULT i_prepareSaveSettings(bool *pfNeedsGlobalSaveSettings);
     684    HRESULT i_prepareSaveSettings(bool *pfNeedsGlobalSaveSettings,
     685                                  bool *pfSettingsFileIsNew);
    685686    HRESULT i_saveSettings(bool *pfNeedsGlobalSaveSettings, AutoWriteLock &alock, int aFlags = 0);
    686687
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