https://git.reactos.org/?p=reactos.git;a=commitdiff;h=d389a5d10cac10b0a051e…
commit d389a5d10cac10b0a051e69310ab9ce5495e8edd
Author: Eric Kohl <eric.kohl(a)reactos.org>
AuthorDate: Sun Sep 12 23:36:18 2021 +0200
Commit: Eric Kohl <eric.kohl(a)reactos.org>
CommitDate: Sun Sep 12 23:36:18 2021 +0200
[KBDHID] Fix returned Status for IOCTL_KEYBOARD_QUERY_*
Addendum to 6249d5ede31ee6ba81f8b0cde94f5c8f875fd9a.
---
drivers/hid/kbdhid/kbdhid.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/hid/kbdhid/kbdhid.c b/drivers/hid/kbdhid/kbdhid.c
index 4ceecdc069b..7c1a9080c3b 100644
--- a/drivers/hid/kbdhid/kbdhid.c
+++ b/drivers/hid/kbdhid/kbdhid.c
@@ -459,7 +459,7 @@ KbdHid_InternalDeviceControl(
/* buffer too small */
Irp->IoStatus.Status = STATUS_BUFFER_TOO_SMALL;
IoCompleteRequest(Irp, IO_NO_INCREMENT);
- return STATUS_INVALID_PARAMETER;
+ return STATUS_BUFFER_TOO_SMALL;
}
/* copy indicators */
@@ -479,7 +479,7 @@ KbdHid_InternalDeviceControl(
/* buffer too small */
Irp->IoStatus.Status = STATUS_BUFFER_TOO_SMALL;
IoCompleteRequest(Irp, IO_NO_INCREMENT);
- return STATUS_INVALID_PARAMETER;
+ return STATUS_BUFFER_TOO_SMALL;
}
/* copy indicators */