- Timestamp:
- Aug 16, 2016 11:28:21 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/solaris/USBProxyBackendSolaris.cpp
r62485 r63542 284 284 * Optional (some devices don't have all these) 285 285 */ 286 char *pszCopy; 286 287 if (di_prop_lookup_strings(DDI_DEV_T_ANY, Node, "usb-product-name", &pStr) > 0) 287 288 { 288 pCur->pszProduct = RTStrDup(pStr);289 USBLibPurgeEncoding(p Cur->pszProduct);289 pCur->pszProduct = pszCopy = RTStrDup(pStr); 290 USBLibPurgeEncoding(pszCopy); 290 291 } 291 292 292 293 if (di_prop_lookup_strings(DDI_DEV_T_ANY, Node, "usb-vendor-name", &pStr) > 0) 293 294 { 294 pCur->pszManufacturer = RTStrDup(pStr);295 USBLibPurgeEncoding(p Cur->pszManufacturer);295 pCur->pszManufacturer = pszCopy = RTStrDup(pStr); 296 USBLibPurgeEncoding(pszCopy); 296 297 } 297 298 298 299 if (di_prop_lookup_strings(DDI_DEV_T_ANY, Node, "usb-serialno", &pStr) > 0) 299 300 { 300 pCur->pszSerialNumber = RTStrDup(pStr);301 USBLibPurgeEncoding(p Cur->pszSerialNumber);301 pCur->pszSerialNumber = pszCopy = RTStrDup(pStr); 302 USBLibPurgeEncoding(pszCopy); 302 303 } 303 304
Note:
See TracChangeset
for help on using the changeset viewer.