VirtualBox

Changeset 66875 in vbox for trunk


Ignore:
Timestamp:
May 11, 2017 5:06:28 PM (7 years ago)
Author:
vboxsync
Message:

Main: bugref:8855: when renaming settings, don't change the config directory inappropriately

File:
1 edited

Legend:

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

    r66483 r66875  
    99279927            // in the saved state file path, replace the old directory with the new directory
    99289928            if (RTPathStartsWith(mSSData->strStateFilePath.c_str(), configDir.c_str()))
    9929                 mSSData->strStateFilePath = newConfigDir.append(mSSData->strStateFilePath.c_str() + configDir.length());
     9929            {
     9930                // do not change newConfigDir!
     9931                Utf8Str strAppend = mSSData->strStateFilePath.c_str() + configDir.length();
     9932                mSSData->strStateFilePath = newConfigDir;
     9933                mSSData->strStateFilePath.append(strAppend);
     9934            }
    99309935
    99319936            // and do the same thing for the saved state file paths of all the online snapshots
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