windows_winusb: Mask wIndex correctly when checking interfaces
authorLéo Lam <leo@innovatetechnologi.es>
Fri, 3 May 2019 10:49:00 +0000 (12:49 +0200)
committerNathan Hjelm <hjelmn@me.com>
Mon, 8 Jul 2019 03:59:09 +0000 (21:59 -0600)
commit028a92e5f4336e3ff99ddef8ae581b116bba6a9b
tree423d14f4149ffc364d8df69b5b5cb7c0b7dbc7ea
parent4d05bf9621147e72f031235086f0f06234e525d7
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/os/windows_winusb.c
libusb/version_nano.h