commit | 028a92e5f4336e3ff99ddef8ae581b116bba6a9b | [log] [tgz] |
---|---|---|
author | Léo Lam <leo@innovatetechnologi.es> | Fri May 03 12:49:00 2019 +0200 |
committer | Nathan Hjelm <hjelmn@me.com> | Sun Jul 07 21:59:09 2019 -0600 |
tree | 423d14f4149ffc364d8df69b5b5cb7c0b7dbc7ea | |
parent | 4d05bf9621147e72f031235086f0f06234e525d7 [diff] |
windows_winusb: Mask wIndex correctly when checking interfaces According to the USB 3.0 spec (9.3.4), the interface number is in the lower 8 bits of wIndex. Note that wIndex must not be modified because some (non-compliant?) devices actually use the higher 8 bits for custom data with recipient-interface requests. Closes #567 Signed-off-by: Nathan Hjelm <hjelmn@me.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)