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>
Showing
Please
register
or
sign in
to comment