Changeset 97889 in vbox
- Timestamp:
- Dec 29, 2022 2:42:10 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/USBDeviceFilterImpl.cpp
r97805 r97889 62 62 Assert(value >= 0 && value <= 0xffff); 63 63 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); 69 65 } 70 66 else if (USBFilterIsMethodString(matchingMethod)) … … 120 116 char *pszNext; 121 117 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); 127 119 if (RT_SUCCESS(vrc)) 128 120 pszNext = RTStrStripL(pszNext);
Note:
See TracChangeset
for help on using the changeset viewer.