Aric Stewart : winebus.sys: Implement IOCTL_HID_GET_REPORT_DESCRIPTOR for hidraw.
Alexandre Julliard
julliard at winehq.org
Tue Oct 11 15:21:11 CDT 2016
Module: wine
Branch: master
Commit: da819ebe025fe472d695bfecab57fb063f2acdb8
URL: http://source.winehq.org/git/wine.git/?a=commit;h=da819ebe025fe472d695bfecab57fb063f2acdb8
Author: Aric Stewart <aric at codeweavers.com>
Date: Tue Oct 11 14:09:46 2016 +0200
winebus.sys: Implement IOCTL_HID_GET_REPORT_DESCRIPTOR for hidraw.
Signed-off-by: Aric Stewart <aric at codeweavers.com>
Signed-off-by: Sebastian Lackner <sebastian at fds-team.de>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
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;
More information about the wine-cvs
mailing list