VirtualBox

Changeset 71300 in vbox for trunk/src/VBox/Devices/USB


Ignore:
Timestamp:
Mar 12, 2018 3:13:52 PM (7 years ago)
Author:
vboxsync
Message:

VUSB: Fishy devices may have interfaces with no endpoints, work around that.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/USB/USBProxyDevice.cpp

    r69500 r71300  
    11071107                     */
    11081108                    PVUSBDESCENDPOINTEX paEps = (PVUSBDESCENDPOINTEX)paIfs[iIf].paSettings[iAlt].paEndpoints;
     1109                    if (!paEps)
     1110                        continue;
     1111
    11091112                    for (unsigned iEp = 0; iEp < paIfs[iIf].paSettings[iAlt].Core.bNumEndpoints; iEp++)
    11101113                    {
     
    11571160
    11581161                    PVUSBDESCENDPOINTEX paEps = (PVUSBDESCENDPOINTEX)paIfs[iIf].paSettings[iAlt].paEndpoints;
     1162                    if (!paEps)
     1163                        continue;
     1164
    11591165                    for (unsigned iEp = 0; iEp < paIfs[iIf].paSettings[iAlt].Core.bNumEndpoints; iEp++)
    11601166                    {
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