VirtualBox

Changeset 97889 in vbox


Ignore:
Timestamp:
Dec 29, 2022 2:42:10 PM (2 years ago)
Author:
vboxsync
Message:

Main/USBDeviceFilter: Reverted out r154880 as it breaks the API as examplified by the tdUsb1.py failures.

File:
1 edited

Legend:

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

    r97805 r97889  
    6262        Assert(value >= 0 && value <= 0xffff);
    6363
    64         /* USBFILTERIDX_PORT is decimal, all others are hex (or need BCD coding). */
    65         if (aIdx == USBFILTERIDX_PORT)
    66             rstrOut = Utf8StrFmt("%RU16", (uint16_t)value);
    67         else
    68             rstrOut = Utf8StrFmt("%04RX16", (uint16_t)value);
     64        rstrOut = Utf8StrFmt("%04RX16", (uint16_t)value);
    6965    }
    7066    else if (USBFilterIsMethodString(matchingMethod))
     
    120116            char *pszNext;
    121117            uint64_t u64;
    122             /* USBFILTERIDX_PORT is decimal, all others are hex (or need BCD coding). */
    123             if (aIdx == USBFILTERIDX_PORT)
    124                 vrc = RTStrToUInt64Ex(pcszValue, &pszNext, 10, &u64);
    125             else
    126                 vrc = RTStrToUInt64Ex(pcszValue, &pszNext, 16, &u64);
     118            vrc = RTStrToUInt64Ex(pcszValue, &pszNext, 16, &u64);
    127119            if (RT_SUCCESS(vrc))
    128120                pszNext = RTStrStripL(pszNext);
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