Changeset 43664 in vbox
- Timestamp:
- Oct 17, 2012 10:16:02 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageSnapshot.cpp
r39120 r43664 190 190 /* See showVMInfo. */ 191 191 ComPtr<ISnapshot> ptrSnapshot; 192 CHECK_ERROR2_RET(rptrMachine, FindSnapshot(Bstr().raw(), ptrSnapshot.asOutParam()), RTEXITCODE_FAILURE); 192 HRESULT hrc = rptrMachine->FindSnapshot(Bstr().raw(), ptrSnapshot.asOutParam()); 193 if (FAILED(hrc)) 194 { 195 RTPrintf("This machine does not have any snapshots\n"); 196 return RTEXITCODE_FAILURE; 197 } 193 198 if (ptrSnapshot) 194 199 { 195 200 ComPtr<ISnapshot> ptrCurrentSnapshot; 196 201 CHECK_ERROR2_RET(rptrMachine,COMGETTER(CurrentSnapshot)(ptrCurrentSnapshot.asOutParam()), RTEXITCODE_FAILURE); 197 HRESULThrc = showSnapshots(ptrSnapshot, ptrCurrentSnapshot, enmDetails);202 hrc = showSnapshots(ptrSnapshot, ptrCurrentSnapshot, enmDetails); 198 203 if (FAILED(hrc)) 199 204 return RTEXITCODE_FAILURE;
Note:
See TracChangeset
for help on using the changeset viewer.