commit | d236b63e81d2e92fc86181a4d147dbde38a8ac31 | [log] [tgz] |
---|---|---|
author | Chris Dickens <christopher.a.dickens@gmail.com> | Mon Mar 12 10:28:40 2018 -0700 |
committer | Chris Dickens <christopher.a.dickens@gmail.com> | Mon Mar 12 10:28:40 2018 -0700 |
tree | 17213c15a175c449170f376b96200e0b4d8a3797 | |
parent | 76b0677b14beda38ca4e553dec7818bf79152b48 [diff] |
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>
libusb is a library for USB device access from Linux, macOS, Windows, OpenBSD/NetBSD and Haiku userspace. It is written in C (Haiku backend in C++) and licensed under the GNU Lesser General Public License version 2.1 or, at your option, any later version (see COPYING).
libusb is abstracted internally in such a way that it can hopefully be ported to other operating systems. Please see the PORTING file for more information.
libusb homepage: http://libusb.info/
Developers will wish to consult the API documentation: http://api.libusb.info
Use the mailing list for questions, comments, etc: http://mailing-list.libusb.info
(Please use the mailing list rather than mailing developers directly)