VirtualBox

Changeset 59398 in vbox


Ignore:
Timestamp:
Jan 19, 2016 8:04:30 AM (9 years ago)
Author:
vboxsync
Message:

FE/VBoxManage: Use the IHostUSBDevice::GetDeviceInfo attribute so we can get the info from the internal USB database in case the device doesn't provide some information

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageList.cpp

    r58763 r59398  
    443443
    444444            /* optional stuff. */
     445            SafeArray<BSTR> CollDevInfo;
    445446            Bstr bstr;
    446             CHECK_ERROR_RET(dev, COMGETTER(Manufacturer)(bstr.asOutParam()), 1);
     447            CHECK_ERROR_RET(dev, COMGETTER(DeviceInfo)(ComSafeArrayAsOutParam(CollDevInfo)), 1);
     448            if (CollDevInfo.size() >= 1)
     449                bstr = Bstr(CollDevInfo[0]);
    447450            if (!bstr.isEmpty())
    448451                RTPrintf("Manufacturer:       %ls\n", bstr.raw());
    449             CHECK_ERROR_RET(dev, COMGETTER(Product)(bstr.asOutParam()), 1);
     452            if (CollDevInfo.size() >= 2)
     453                bstr = Bstr(CollDevInfo[1]);
    450454            if (!bstr.isEmpty())
    451455                RTPrintf("Product:            %ls\n", bstr.raw());
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