VirtualBox

Changeset 35804 in vbox for trunk/src/VBox/Main/src-server


Ignore:
Timestamp:
Feb 1, 2011 9:38:43 AM (14 years ago)
Author:
vboxsync
Message:

Main/HostImpl: make Host::FindHostDVDDrive accept UUIDs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/HostImpl.cpp

    r35785 r35804  
    13161316    {
    13171317        ComPtr<IMedium> drive = drivevec[i];
    1318         Bstr name, location;
     1318        Bstr name, location, id;
    13191319        rc = drive->COMGETTER(Name)(name.asOutParam());
    13201320        if (FAILED(rc)) return rc;
    13211321        rc = drive->COMGETTER(Location)(location.asOutParam());
    13221322        if (FAILED(rc)) return rc;
    1323         if (name == aName || location == aName)
     1323        rc = drive->COMGETTER(Id)(id.asOutParam());
     1324        if (FAILED(rc)) return rc;
     1325        if (   name == aName
     1326            || location == aName
     1327            || (!Guid(aName).isEmpty() && aName == id))
    13241328            return drive.queryInterfaceTo(aDrive);
    13251329    }
Note: See TracChangeset for help on using the changeset viewer.

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