Changeset 95476 in vbox for trunk/src/VBox/Main
- Timestamp:
- Jul 1, 2022 1:17:59 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/SnapshotImpl.cpp
r95423 r95476 763 763 { 764 764 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 765 const Utf8Str &path = m->pMachine->mSSData->strStateFilePath;766 767 if (path.isEmpty())768 return false;769 770 765 std::list<const Snapshot *> llSnapshotsTodo; 771 766 llSnapshotsTodo.push_back(this); … … 775 770 const Snapshot *pSnapshot = llSnapshotsTodo.front(); 776 771 llSnapshotsTodo.pop_front(); 777 778 if (!pSnapshotToIgnore || pSnapshotToIgnore != this) 772 const Utf8Str &path = pSnapshot->m->pMachine->mSSData->strStateFilePath; 773 774 if ((!pSnapshotToIgnore || pSnapshotToIgnore != this) && path.isNotEmpty()) 779 775 if (path == strPath) 780 776 return true; … … 998 994 std::list<Utf8Str>::const_iterator itFound = find(llFilenames.begin(), llFilenames.end(), strFile); 999 995 1000 if (itFound != llFilenames.end())996 if (itFound == llFilenames.end()) 1001 997 llFilenames.push_back(strFile); 1002 998 }
Note:
See TracChangeset
for help on using the changeset viewer.