Changeset 93974 in vbox for trunk/src/VBox/Devices/USB/DrvVUSBRootHub.cpp
- Timestamp:
- Feb 28, 2022 12:03:21 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/USB/DrvVUSBRootHub.cpp
r93956 r93974 430 430 pThis->apDevByPort[uPort] = NULL; 431 431 432 if (pDev->u8Address == VUSB_DEFAULT_ADDRESS) 433 { 434 AssertPtr(pThis->apDevByAddr[VUSB_DEFAULT_ADDRESS]); 435 436 if (pDev == pThis->apDevByAddr[VUSB_DEFAULT_ADDRESS]) 437 pThis->apDevByAddr[VUSB_DEFAULT_ADDRESS] = pDev->pNextDefAddr; 438 else 439 { 440 /* Search the list for the device and remove it. */ 441 PVUSBDEV pDevPrev = pThis->apDevByAddr[VUSB_DEFAULT_ADDRESS]; 442 443 while ( pDevPrev 444 && pDevPrev->pNextDefAddr != pDev) 445 pDevPrev = pDevPrev->pNextDefAddr; 446 447 AssertPtr(pDevPrev); 448 pDevPrev->pNextDefAddr = pDev->pNextDefAddr; 449 } 450 451 pDev->pNextDefAddr = NULL; 452 } 453 else 432 if (pDev->u8Address != VUSB_INVALID_ADDRESS) 454 433 { 455 434 Assert(pThis->apDevByAddr[pDev->u8Address] == pDev);
Note:
See TracChangeset
for help on using the changeset viewer.