diff options
author | Chris Dickens <christopher.a.dickens@gmail.com> | 2018-03-12 10:28:40 -0700 |
---|---|---|
committer | Chris Dickens <christopher.a.dickens@gmail.com> | 2018-03-12 10:28:40 -0700 |
commit | d236b63e81d2e92fc86181a4d147dbde38a8ac31 (patch) | |
tree | 17213c15a175c449170f376b96200e0b4d8a3797 /msvc | |
parent | 76b0677b14beda38ca4e553dec7818bf79152b48 (diff) | |
download | libusb-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