Aric Stewart : hidclass.sys: Correct input vs output parameters for IOCTL_HID_SET_FEATURE.
Alexandre Julliard
julliard at wine.codeweavers.com
Tue Apr 5 11:07:34 CDT 2016
Module: wine
Branch: master
Commit: 1b62b7f3c93dec8e6aba5b6f1f9ffaeafd6c83e1
URL: http://source.winehq.org/git/wine.git/?a=commit;h=1b62b7f3c93dec8e6aba5b6f1f9ffaeafd6c83e1
Author: Aric Stewart <aric at codeweavers.com>
Date: Tue Apr 5 08:43:43 2016 -0500
hidclass.sys: Correct input vs output parameters for IOCTL_HID_SET_FEATURE.
Signed-off-by: Aric Stewart <aric at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/hidclass.sys/device.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/hidclass.sys/device.c b/dlls/hidclass.sys/device.c
index 886a77a..2900d9e 100644
--- a/dlls/hidclass.sys/device.c
+++ b/dlls/hidclass.sys/device.c
@@ -479,7 +479,7 @@ static NTSTATUS HID_set_feature(DEVICE_OBJECT *device, IRP *irp)
packet.reportBufferLen = irpsp->Parameters.DeviceIoControl.InputBufferLength;
TRACE_(hid_report)("(id %i, len %i buffer %p)\n", packet.reportId, packet.reportBufferLen, packet.reportBuffer);
- rc = call_minidriver(IOCTL_HID_SET_FEATURE, device, NULL, 0, &packet, sizeof(packet));
+ rc = call_minidriver(IOCTL_HID_SET_FEATURE, device, &packet, sizeof(packet), NULL, 0);
irp->IoStatus.u.Status = rc;
if (irp->IoStatus.u.Status == STATUS_SUCCESS)
More information about the wine-cvs
mailing list