Changeset 81419 in vbox for trunk/src/VBox/Main
- Timestamp:
- Oct 21, 2019 4:26:00 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/MachineImplMoveVM.cpp
r81415 r81419 1135 1135 pSnapshot->i_updateSavedStatePaths(sourcePath.c_str(), 1136 1136 targetPath.c_str()); 1137 if (RTPathStartsWith(m_pMachine->mSSData->strStateFilePath.c_str(), sourcePath.c_str())) 1138 m_pMachine->mSSData->strStateFilePath = Utf8StrFmt("%s%s", 1139 targetPath.c_str(), 1140 m_pMachine->mSSData->strStateFilePath.c_str() + sourcePath.length()); 1141 else 1142 m_pMachine->mSSData->strStateFilePath = Utf8StrFmt("%s%c%s", 1143 targetPath.c_str(), 1144 RTPATH_DELIMITER, 1145 RTPathFilename(m_pMachine->mSSData->strStateFilePath.c_str())); 1137 if (m_pMachine->mSSData->strStateFilePath.isNotEmpty()) 1138 { 1139 if (RTPathStartsWith(m_pMachine->mSSData->strStateFilePath.c_str(), sourcePath.c_str())) 1140 m_pMachine->mSSData->strStateFilePath = Utf8StrFmt("%s%s", 1141 targetPath.c_str(), 1142 m_pMachine->mSSData->strStateFilePath.c_str() + sourcePath.length()); 1143 else 1144 m_pMachine->mSSData->strStateFilePath = Utf8StrFmt("%s%c%s", 1145 targetPath.c_str(), 1146 RTPATH_DELIMITER, 1147 RTPathFilename(m_pMachine->mSSData->strStateFilePath.c_str())); 1148 } 1146 1149 } 1147 1150
Note:
See TracChangeset
for help on using the changeset viewer.