winebus.sys: Make hidraw report callbacks consistent.
commit3fb4eec6c36b1139c3a2631f4514d54bcb35a3e7
authorRémi Bernon <rbernon@codeweavers.com>
Fri, 13 Aug 2021 07:46:15 +0000 (13 09:46 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Fri, 13 Aug 2021 09:52:36 +0000 (13 11:52 +0200)
tree50a0ebd3626161d5f0e4384b24d003f9366a3a55
parentf884ee46fb4169ecbf631dc29e42aa6f526c7974
winebus.sys: Make hidraw report callbacks consistent.

This was inconsistently forcing the first report byte to the report id.

The report ids are stripped when they aren't used, in the packet
hidclass.sys provides, but hidraw API wants them all the time, so we
need to use an intermediate buffer.

Also ioctl length argument have a lower size capacity, so we have to
check for it as well.

Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/winebus.sys/bus_udev.c