Changeset 50380 in vbox for trunk/src/VBox/Main/src-server
- Timestamp:
- Feb 10, 2014 10:31:35 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.