Changeset 37851 in vbox for trunk/src/VBox/Main/src-server
- Timestamp:
- Jul 8, 2011 5:04:03 PM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 72745
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/SnapshotImpl.cpp
r37449 r37851 2014 2014 */ 2015 2015 STDMETHODIMP SessionMachine::DeleteSnapshot(IConsole *aInitiator, 2016 IN_BSTR aId, 2016 IN_BSTR aStartId, 2017 IN_BSTR aEndId, 2017 2018 BOOL fDeleteAllChildren, 2018 2019 MachineState_T *aMachineState, … … 2021 2022 LogFlowThisFuncEnter(); 2022 2023 2023 Guid id(aId); 2024 AssertReturn(aInitiator && !id.isEmpty(), E_INVALIDARG); 2024 Guid startId(aStartId); 2025 Guid endId(aEndId); 2026 AssertReturn(aInitiator && !startId.isEmpty() && !endId.isEmpty(), E_INVALIDARG); 2025 2027 AssertReturn(aMachineState && aProgress, E_POINTER); 2026 2028 2027 /** @todo implement the "and all children" variant*/2028 if (fDeleteAllChildren )2029 /** @todo implement the "and all children" and "range" variants */ 2030 if (fDeleteAllChildren || startId != endId) 2029 2031 ReturnComNotImplemented(); 2030 2032 … … 2047 2049 2048 2050 ComObjPtr<Snapshot> pSnapshot; 2049 HRESULT rc = findSnapshotById( id, pSnapshot, true /* aSetError */);2051 HRESULT rc = findSnapshotById(startId, pSnapshot, true /* aSetError */); 2050 2052 if (FAILED(rc)) return rc; 2051 2053
Note:
See TracChangeset
for help on using the changeset viewer.