hidclass.sys: Return STATUS_INVALID_PARAMETER when appropriate.
commita8ab0fe08f02edd52432bb8f2440a47c7ad6ccbc
authorRémi Bernon <rbernon@codeweavers.com>
Tue, 3 Aug 2021 16:55:20 +0000 (3 18:55 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 4 Aug 2021 19:48:28 +0000 (4 21:48 +0200)
treea0d82aa35b07124ef2437052bf1b41e1ef2e2c53
parent9c5ab964e9c85c588e8d588765ec3a52fc09381a
hidclass.sys: Return STATUS_INVALID_PARAMETER when appropriate.

Instead of STATUS_BUFFER_TOO_SMALL when input report buffer length is
less than InputReportByteLength.

Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/hidclass.sys/device.c
dlls/ntoskrnl.exe/tests/driver_hid.c
dlls/ntoskrnl.exe/tests/ntoskrnl.c