Changeset 60551 in vbox for trunk/src/VBox/Main/src-server/generic
- Timestamp:
- Apr 18, 2016 5:37:22 PM (9 years ago)
- svn:sync-xref-src-repo-rev:
- 106680
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/generic/USBProxyBackendUsbIp.cpp
r60107 r60551 380 380 rc = RTPipeClose(m->hWakeupPipeW); 381 381 AssertRC(rc); 382 383 m->hPollSet = NIL_RTPOLLSET; 384 m->hWakeupPipeR = NIL_RTPIPE; 385 m->hWakeupPipeW = NIL_RTPIPE; 382 386 } 383 387 … … 385 389 RTStrFree(m->pszHost); 386 390 if (m->hMtxDevices != NIL_RTSEMFASTMUTEX) 391 { 387 392 RTSemFastMutexDestroy(m->hMtxDevices); 393 m->hMtxDevices = NIL_RTSEMFASTMUTEX; 394 } 388 395 389 396 delete m; … … 455 462 456 463 /* Query a new device list upon entering. */ 457 if (m->enmRecvState == kUsbIpRecvState_None) 464 if ( RT_SUCCESS(rc) 465 && m->enmRecvState == kUsbIpRecvState_None) 458 466 { 459 467 rc = startListExportedDevicesReq(); … … 695 703 m->hSocket = NIL_RTSOCKET; 696 704 } 705 else 706 LogRel(("USB/IP: Connected to host \"%s\"\n", m->pszHost)); 697 707 } 698 708 … … 907 917 pNew->enmState = USBDEVICESTATE_USED_BY_HOST_CAPTURABLE; 908 918 pNew->u64SerialHash = 0; 909 pNew->bBus = (uint8_t)pDev->u32BusNum; 910 pNew->bPort = (uint8_t)pDev->u32DevNum; 919 /** @todo: The following is not correct but is required to to get USB testing working 920 * because only the port can be part of a filter (adding the required attributes for the bus 921 * breaks API and ABI compatibility). 922 * Filtering by port number is required for USB testing to connect to the correct device 923 * in case there are multiple ones. 924 */ 925 pNew->bBus = (uint8_t)pDev->u32DevNum; 926 pNew->bPort = (uint8_t)pDev->u32BusNum; 911 927 912 928 switch (pDev->u32Speed)
Note:
See TracChangeset
for help on using the changeset viewer.