VirtualBox

Changeset 298 in vbox for trunk/src


Ignore:
Timestamp:
Jan 25, 2007 1:09:58 PM (18 years ago)
Author:
vboxsync
Message:

Main: Fixed: [Host]USBDeviceFilter::manufaturer/product/serialNumber setters mistakenly used USHORT filters instead of Bstr ones (not allowing to assign anything but 4 digits).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/USBDeviceFilterImpl.cpp

    r1 r298  
    495495    if (mData->mManufacturer.string() != aManufacturer)
    496496    {
    497         Data::USHORTFilter flt = aManufacturer;
     497        Data::BstrFilter flt = aManufacturer;
    498498        ComAssertRet (!flt.isNull(), E_FAIL);
    499499        if (!flt.isValid())
     
    533533    if (mData->mProduct.string() != aProduct)
    534534    {
    535         Data::USHORTFilter flt = aProduct;
     535        Data::BstrFilter flt = aProduct;
    536536        ComAssertRet (!flt.isNull(), E_FAIL);
    537537        if (!flt.isValid())
     
    571571    if (mData->mSerialNumber.string() != aSerialNumber)
    572572    {
    573         Data::USHORTFilter flt = aSerialNumber;
     573        Data::BstrFilter flt = aSerialNumber;
    574574        ComAssertRet (!flt.isNull(), E_FAIL);
    575575        if (!flt.isValid())
     
    10781078    if (mData->mManufacturer.string() != aManufacturer)
    10791079    {
    1080         Data::USHORTFilter flt = aManufacturer;
     1080        Data::BstrFilter flt = aManufacturer;
    10811081        ComAssertRet (!flt.isNull(), E_FAIL);
    10821082        if (!flt.isValid())
     
    11141114    if (mData->mProduct.string() != aProduct)
    11151115    {
    1116         Data::USHORTFilter flt = aProduct;
     1116        Data::BstrFilter flt = aProduct;
    11171117        ComAssertRet (!flt.isNull(), E_FAIL);
    11181118        if (!flt.isValid())
     
    11501150    if (mData->mSerialNumber.string() != aSerialNumber)
    11511151    {
    1152         Data::USHORTFilter flt = aSerialNumber;
     1152        Data::BstrFilter flt = aSerialNumber;
    11531153        ComAssertRet (!flt.isNull(), E_FAIL);
    11541154        if (!flt.isValid())
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