winebus.sys: Implement IOCTL_HID_GET_REPORT_DESCRIPTOR for hidraw.
Signed-off-by: Aric Stewart <aric@codeweavers.com> Signed-off-by: Sebastian Lackner <sebastian@fds-team.de> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
eac738b95f
commit
da819ebe02
|
@ -412,6 +412,15 @@ NTSTATUS WINAPI hid_internal_dispatch(DEVICE_OBJECT *device, IRP *irp)
|
||||||
irp->IoStatus.Information = sizeof(*descriptor);
|
irp->IoStatus.Information = sizeof(*descriptor);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case IOCTL_HID_GET_REPORT_DESCRIPTOR:
|
||||||
|
{
|
||||||
|
DWORD length = irpsp->Parameters.DeviceIoControl.OutputBufferLength;
|
||||||
|
TRACE("IOCTL_HID_GET_REPORT_DESCRIPTOR\n");
|
||||||
|
|
||||||
|
irp->IoStatus.u.Status = status = ext->vtbl->get_reportdescriptor(device, irp->UserBuffer, length, &length);
|
||||||
|
irp->IoStatus.Information = length;
|
||||||
|
break;
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
ULONG code = irpsp->Parameters.DeviceIoControl.IoControlCode;
|
ULONG code = irpsp->Parameters.DeviceIoControl.IoControlCode;
|
||||||
|
|
Loading…
Reference in New Issue