VirtualBox

Changeset 50380 in vbox for trunk/src


Ignore:
Timestamp:
Feb 10, 2014 10:31:35 AM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
92135
Message:

Main: fixed attribute type of IVirtualBox::getGuestOSType(). It's a string, not a Guid.

Location:
trunk/src/VBox/Main
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/src/VBox/Main/idl/VirtualBox.xidl

    r50291 r50380  
    23822382
    23832383      </desc>
    2384       <param name="id" type="uuid" mod="string" dir="in">
     2384      <param name="id" type="wstring" dir="in">
    23852385        <desc>Guest OS type ID string.</desc>
    23862386      </param>
  • TabularUnified trunk/src/VBox/Main/include/VirtualBoxImpl.h

    r50358 r50380  
    297297                       BOOL aForceNewUuid,
    298298                       ComPtr<IMedium> &aMedium);
    299     HRESULT getGuestOSType(const com::Guid &aId,
     299    HRESULT getGuestOSType(const com::Utf8Str &aId,
    300300                           ComPtr<IGuestOSType> &aType);
    301301    HRESULT createSharedFolder(const com::Utf8Str &aName,
  • TabularUnified trunk/src/VBox/Main/src-server/VirtualBoxImpl.cpp

    r50356 r50380  
    18421842
    18431843/** @note Locks this object for reading. */
    1844 HRESULT VirtualBox::getGuestOSType(const com::Guid &aId,
     1844HRESULT VirtualBox::getGuestOSType(const com::Utf8Str &aId,
    18451845                                   ComPtr<IGuestOSType> &aType)
    18461846{
    18471847    aType = NULL;
    18481848    AutoReadLock alock(m->allGuestOSTypes.getLockHandle() COMMA_LOCKVAL_SRC_POS);
    1849     IN_BSTR strId = Bstr(aId.toUtf16()).raw();
    18501849
    18511850    HRESULT rc = S_OK;
     
    18561855        const Bstr &typeId = (*it)->i_id();
    18571856        AssertMsg(!typeId.isEmpty(), ("ID must not be NULL"));
    1858         if (com::Guid(typeId) == aId)
     1857        if (typeId == aId)
    18591858        {
    18601859            (*it).queryInterfaceTo(aType.asOutParam());
     
    18641863    return (aType) ? S_OK :
    18651864        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());
    18681867    return rc;
    18691868}
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette