[KBDHID] Fix returned Status for IOCTL_KEYBOARD_QUERY_*

Addendum to 6249d5ede31ee6ba81f8b0cde94f5c8f875fd9a.
This commit is contained in:
Eric Kohl 2021-09-12 23:36:18 +02:00
parent 3bf7e3ac13
commit d389a5d10c

View file

@ -459,7 +459,7 @@ KbdHid_InternalDeviceControl(
/* buffer too small */ /* buffer too small */
Irp->IoStatus.Status = STATUS_BUFFER_TOO_SMALL; Irp->IoStatus.Status = STATUS_BUFFER_TOO_SMALL;
IoCompleteRequest(Irp, IO_NO_INCREMENT); IoCompleteRequest(Irp, IO_NO_INCREMENT);
return STATUS_INVALID_PARAMETER; return STATUS_BUFFER_TOO_SMALL;
} }
/* copy indicators */ /* copy indicators */
@ -479,7 +479,7 @@ KbdHid_InternalDeviceControl(
/* buffer too small */ /* buffer too small */
Irp->IoStatus.Status = STATUS_BUFFER_TOO_SMALL; Irp->IoStatus.Status = STATUS_BUFFER_TOO_SMALL;
IoCompleteRequest(Irp, IO_NO_INCREMENT); IoCompleteRequest(Irp, IO_NO_INCREMENT);
return STATUS_INVALID_PARAMETER; return STATUS_BUFFER_TOO_SMALL;
} }
/* copy indicators */ /* copy indicators */