- Timestamp:
- Apr 24, 2018 7:49:53 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/MachineImplMoveVM.cpp
r71995 r71996 1172 1172 { 1173 1173 const Utf8Str &path = m_pMachine->mSSData->strStateFilePath; 1174 m_pMachine->mSSData->strStateFilePath = Utf8StrFmt("%s%s", 1175 targetPath.c_str(), 1176 path.c_str() + sourcePath.length()); 1174 /* 1175 * This check for the case when a new value is equal to the old one. 1176 * Maybe the more clever check is needed in the some corner cases. 1177 */ 1178 if (!path.contains(targetPath)) 1179 { 1180 m_pMachine->mSSData->strStateFilePath = Utf8StrFmt("%s%s", 1181 targetPath.c_str(), 1182 path.c_str() + sourcePath.length()); 1183 } 1177 1184 } 1178 1185
Note:
See TracChangeset
for help on using the changeset viewer.