Fix Windows HID backend missing byte
authormcuee <xiaofanc@gmail.com>
Fri, 27 Aug 2021 09:49:30 +0000 (17:49 +0800)
committerTormod Volden <debian.tormod@gmail.com>
Thu, 23 Sep 2021 08:49:34 +0000 (10:49 +0200)
commitf7624bf0143d2016ca2aac7bdada91c0b63f0cad
tree89d6ace27f35843319e7e8810cc3e915dd79ee1f
parent1a906274a66dd58bf81836db1306902d4a7dc185
Fix Windows HID backend missing byte

When the report id is zero, we should indeed skip the first byte of
transfer_priv->hid_buffer, since it is not part of the actual report.
But the report size should not change.

Thanks to Jonas Malaco who has done the investigation in this issue.
Reference: Jonas Malaco's comments
https://github.com/libusb/libusb/issues/902#issuecomment-810726897

Fixes #902
Fixes #977
Closes #986
libusb/os/windows_winusb.c
libusb/version_nano.h