VirtualBox

Changeset 34258 in vbox


Ignore:
Timestamp:
Nov 22, 2010 5:06:39 PM (14 years ago)
Author:
vboxsync
Message:

Attempt to fix #5374

File:
1 edited

Legend:

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

    r34257 r34258  
    28732873    /* 3: Add all host devices to array of captured devices; obviously making sure there are no duplicates */
    28742874    Assert(pHostDevices && pCaptured);
    2875     pList = pCaptured;
    2876     for (uint32_t i = 0; i < numdev.cUSBDevices; i++)
     2875    pList   = pCaptured;
     2876    while (pList)
    28772877    {
    28782878        uint32_t j;
     
    28832883        for (j = 0; j < cHostDevices; j++)
    28842884        {
    2885             char *pszDeviceRegPath = usblibQueryDeviceRegPath(i);
     2885            char *pszDeviceRegPath = usblibQueryDeviceRegPath(j);
    28862886
    28872887            Assert(pszDeviceRegPath);
     
    28902890                if (!strcmp(pszDeviceRegPath, pDevice->pszAddress))
    28912891                {
    2892                     Log(("usbLibGetDevices: Duplicate device %s (%s)\n", pszDeviceRegPath, usblibQueryDeviceName(i)));
     2892                    Log(("usbLibGetDevices: Duplicate device %s (%s)\n", pszDeviceRegPath, usblibQueryDeviceName(j)));
    28932893                    break;
    28942894                }
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