Changeset 17260 in vbox for trunk/src/VBox/Frontends/VBoxManage
- Timestamp:
- Mar 3, 2009 9:16:15 AM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 43608
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageInfo.cpp
r17078 r17260 66 66 67 67 /* get the children */ 68 ComPtr<ISnapshotCollection> coll; 69 rootSnapshot->COMGETTER(Children)(coll.asOutParam()); 70 if (coll) 71 { 72 ComPtr<ISnapshotEnumerator> enumerator; 73 coll->Enumerate(enumerator.asOutParam()); 74 ULONG index = 0; 75 BOOL hasMore = FALSE; 76 while (enumerator->HasMore(&hasMore), hasMore) 77 { 78 ComPtr<ISnapshot> snapshot; 79 enumerator->GetNext(snapshot.asOutParam()); 68 SafeIfaceArray <ISnapshot> coll; 69 rootSnapshot->COMGETTER(Children)(ComSafeArrayAsOutParam(coll)); 70 if (!coll.isNull()) 71 { 72 for (size_t index = 0; index < coll.size(); ++index) 73 { 74 ComPtr<ISnapshot> snapshot = coll[index]; 80 75 if (snapshot) 81 76 { … … 88 83 showSnapshots(snapshot, details, newPrefix, level + 1); 89 84 } 90 index++;91 85 } 92 86 }
Note:
See TracChangeset
for help on using the changeset viewer.