aboutsummaryrefslogtreecommitdiff
path: root/msvc
diff options
context:
space:
mode:
authorChris Dickens <christopher.a.dickens@gmail.com>2018-03-12 10:28:40 -0700
committerChris Dickens <christopher.a.dickens@gmail.com>2018-03-12 10:28:40 -0700
commitd236b63e81d2e92fc86181a4d147dbde38a8ac31 (patch)
tree17213c15a175c449170f376b96200e0b4d8a3797 /msvc
parent76b0677b14beda38ca4e553dec7818bf79152b48 (diff)
downloadlibusb-d236b63e81d2e92fc86181a4d147dbde38a8ac31.tar.gz
Windows: WinUSB: Guard against erroneous reporting of devices
During enumeration, obtaining the port number via SPDRP_ADDRESS might return a bogus value for some third-party HCD drivers. If this occurs, we might end up reporting the device as having the VID/PID from the last successful enumeration. Guard against this particular situation by clearing the USB_NODE_CONNECTION_INFORMATION_EX structure before issuing the DeviceIoControl() call. References #403 Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
Diffstat (limited to 'msvc')
0 files changed, 0 insertions, 0 deletions