Changeset 16966 in vbox for trunk/src/VBox/Main/MachineImpl.cpp
- Timestamp:
- Feb 20, 2009 9:14:28 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/MachineImpl.cpp
r16867 r16966 1754 1754 1755 1755 STDMETHODIMP 1756 Machine::COMGETTER(SharedFolders) ( ISharedFolderCollection **aSharedFolders)1757 { 1758 CheckComArgOut PointerValid (aSharedFolders);1756 Machine::COMGETTER(SharedFolders) (ComSafeArrayOut (ISharedFolder *, aSharedFolders)) 1757 { 1758 CheckComArgOutSafeArrayPointerValid (aSharedFolders); 1759 1759 1760 1760 AutoCaller autoCaller (this); … … 1763 1763 AutoReadLock alock (this); 1764 1764 1765 ComObjPtr <SharedFolderCollection> coll; 1766 coll.createObject(); 1767 coll->init (mHWData->mSharedFolders); 1768 coll.queryInterfaceTo (aSharedFolders); 1765 SafeIfaceArray <ISharedFolder> folders (mHWData->mSharedFolders); 1766 folders.detachTo (ComSafeArrayOutArg(aSharedFolders)); 1769 1767 1770 1768 return S_OK;
Note:
See TracChangeset
for help on using the changeset viewer.