[2/2] winebus.sys: Implement IOCTL_HID_GET_REPORT_DESCRIPTOR for hidraw. (v3)
Sebastian Lackner
sebastian at fds-team.de
Tue Oct 11 07:09:46 CDT 2016
From: Aric Stewart <aric at codeweavers.com>
Signed-off-by: Aric Stewart <aric at codeweavers.com>
Signed-off-by: Sebastian Lackner <sebastian at fds-team.de>
---
Changes in v3:
* Avoid extremely long line. ;)
dlls/winebus.sys/main.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/dlls/winebus.sys/main.c b/dlls/winebus.sys/main.c
index bf7071d..ad09ec1 100644
--- a/dlls/winebus.sys/main.c
+++ b/dlls/winebus.sys/main.c
@@ -412,6 +412,15 @@ NTSTATUS WINAPI hid_internal_dispatch(DEVICE_OBJECT *device, IRP *irp)
irp->IoStatus.Information = sizeof(*descriptor);
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:
{
ULONG code = irpsp->Parameters.DeviceIoControl.IoControlCode;
--
2.9.0
More information about the wine-patches
mailing list