- Timestamp:
- Feb 10, 2014 10:31:35 AM (11 years ago)
- svn:sync-xref-src-repo-rev:
- 92135
- Location:
- trunk/src/VBox/Main
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/src/VBox/Main/idl/VirtualBox.xidl ¶
r50291 r50380 2382 2382 2383 2383 </desc> 2384 <param name="id" type=" uuid" mod="string" dir="in">2384 <param name="id" type="wstring" dir="in"> 2385 2385 <desc>Guest OS type ID string.</desc> 2386 2386 </param> -
TabularUnified trunk/src/VBox/Main/include/VirtualBoxImpl.h ¶
r50358 r50380 297 297 BOOL aForceNewUuid, 298 298 ComPtr<IMedium> &aMedium); 299 HRESULT getGuestOSType(const com:: Guid&aId,299 HRESULT getGuestOSType(const com::Utf8Str &aId, 300 300 ComPtr<IGuestOSType> &aType); 301 301 HRESULT createSharedFolder(const com::Utf8Str &aName, -
TabularUnified trunk/src/VBox/Main/src-server/VirtualBoxImpl.cpp ¶
r50356 r50380 1842 1842 1843 1843 /** @note Locks this object for reading. */ 1844 HRESULT VirtualBox::getGuestOSType(const com:: Guid&aId,1844 HRESULT VirtualBox::getGuestOSType(const com::Utf8Str &aId, 1845 1845 ComPtr<IGuestOSType> &aType) 1846 1846 { 1847 1847 aType = NULL; 1848 1848 AutoReadLock alock(m->allGuestOSTypes.getLockHandle() COMMA_LOCKVAL_SRC_POS); 1849 IN_BSTR strId = Bstr(aId.toUtf16()).raw();1850 1849 1851 1850 HRESULT rc = S_OK; … … 1856 1855 const Bstr &typeId = (*it)->i_id(); 1857 1856 AssertMsg(!typeId.isEmpty(), ("ID must not be NULL")); 1858 if ( com::Guid(typeId)== aId)1857 if (typeId == aId) 1859 1858 { 1860 1859 (*it).queryInterfaceTo(aType.asOutParam()); … … 1864 1863 return (aType) ? S_OK : 1865 1864 setError(E_INVALIDARG, 1866 tr("'% ls' is not a valid Guest OS type"),1867 strId);1865 tr("'%s' is not a valid Guest OS type"), 1866 aId.c_str()); 1868 1867 return rc; 1869 1868 }
Note:
See TracChangeset
for help on using the changeset viewer.