VirtualBox

Ignore:
Timestamp:
May 7, 2011 8:19:55 PM (14 years ago)
Author:
vboxsync
Message:

usb: device capture filter & enum fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/VBoxUSB/win/lib/VBoxUsbLib-win.cpp

    r36968 r36998  
    354354    if (!DeviceIoControl(hHub, IOCTL_USB_GET_NODE_CONNECTION_DRIVERKEY_NAME, &Name, sizeof (Name), &Name, sizeof (Name), &cbReturned, NULL))
    355355    {
     356#ifdef DEBUG_misha
    356357        DWORD winEr = GetLastError();
    357358        AssertMsgFailed((__FUNCTION__": DeviceIoControl 1 fail winEr (%d)\n", winEr));
     359#endif
    358360        return VERR_GENERAL_FAILURE;
    359361    }
     
    761763    if (RT_FAILURE(rc))
    762764    {
    763         AssertMsgFailed((__FUNCTION__": usbLibDevStrDriverKeyGet failed\n"));
    764765        return rc;
    765766    }
     
    889890static int usbLibMonDevicesUpdate(PVBOXUSBGLOBALSTATE pGlobal, PUSBDEVICE pDevs, uint32_t cDevs, PVBOXUSB_DEV pDevInfos, uint32_t cDevInfos)
    890891{
     892    PUSBDEVICE pDevsHead = pDevs;
    891893    for (; pDevInfos; pDevInfos = pDevInfos->pNext)
    892894    {
    893         for (; pDevs; pDevs = pDevs->pNext)
     895        for (pDevs = pDevsHead; pDevs; pDevs = pDevs->pNext)
    894896        {
    895897            if (usbLibMonDevicesCmp(pDevs, pDevInfos))
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette