- Timestamp:
- Jan 31, 2017 8:00:40 AM (8 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
include/VBox/usblib.h (modified) (2 diffs)
-
src/VBox/Main/src-server/USBProxyBackend.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/usblib.h
r60241 r65529 124 124 * @returns String length (excluding terminator). 125 125 * @param psz The string to purge. 126 * 127 * @remarks The return string may be shorter than the input, left over space 128 * after the end of the string will be filled with zeros. 126 129 */ 127 130 DECLINLINE(size_t) USBLibPurgeEncoding(char *psz) … … 156 159 break; 157 160 } 161 162 /* Wind back to the zero terminator and zero fill any gap to make 163 USBFilterValidate happy. (offSrc is at zero terminator too.) */ 164 offDst--; 165 while (offSrc > offDst) 166 psz[offSrc--] = '\0'; 167 158 168 return offDst; 159 169 } -
trunk/src/VBox/Main/src-server/USBProxyBackend.cpp
r65088 r65529 525 525 { 526 526 vrc = USBFilterSetStringExact(aFilter, USBFILTERIDX_SERIAL_NUMBER_STR, pDev->pszSerialNumber, 527 true /*fMustBePresent*/, false /*fPurge*/);527 true /*fMustBePresent*/, true /*fPurge*/); 528 528 AssertRC(vrc); 529 529 } … … 531 531 { 532 532 vrc = USBFilterSetStringExact(aFilter, USBFILTERIDX_PRODUCT_STR, pDev->pszProduct, 533 true /*fMustBePresent*/, false /*fPurge*/);533 true /*fMustBePresent*/, true /*fPurge*/); 534 534 AssertRC(vrc); 535 535 } … … 537 537 { 538 538 vrc = USBFilterSetStringExact(aFilter, USBFILTERIDX_MANUFACTURER_STR, pDev->pszManufacturer, 539 true /*fMustBePresent*/, false /*fPurge*/);539 true /*fMustBePresent*/, true /*fPurge*/); 540 540 AssertRC(vrc); 541 541 }
Note:
See TracChangeset
for help on using the changeset viewer.

