Aric Stewart : hidclass.sys: Correct size of IOCTL request and unused return value.
Alexandre Julliard
julliard at wine.codeweavers.com
Tue Oct 20 11:28:29 CDT 2015
Module: wine
Branch: master
Commit: e27a4b5e1bfc92b9e3616d06958cdef1bf03c39b
URL: http://source.winehq.org/git/wine.git/?a=commit;h=e27a4b5e1bfc92b9e3616d06958cdef1bf03c39b
Author: Aric Stewart <aric at codeweavers.com>
Date: Mon Oct 19 10:37:49 2015 -0500
hidclass.sys: Correct size of IOCTL request and unused return value.
Signed-off-by: Aric Stewart <aric at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/hidclass.sys/device.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/hidclass.sys/device.c b/dlls/hidclass.sys/device.c
index e7e7e11..e3c7121 100644
--- a/dlls/hidclass.sys/device.c
+++ b/dlls/hidclass.sys/device.c
@@ -277,7 +277,7 @@ static DWORD CALLBACK hid_device_thread(void *args)
packet->reportId = 0;
irp = IoBuildDeviceIoControlRequest(IOCTL_HID_GET_INPUT_REPORT,
- device, NULL, 0, packet, sizeof(packet), TRUE, events[0],
+ device, NULL, 0, packet, sizeof(*packet), TRUE, events[0],
&irp_status);
irpsp = IoGetNextIrpStackLocation(irp);
@@ -287,7 +287,7 @@ static DWORD CALLBACK hid_device_thread(void *args)
ntrc = IoCallDriver(device, irp);
if (ntrc == STATUS_PENDING)
- rc = WaitForMultipleObjects(2, events, FALSE, INFINITE);
+ WaitForMultipleObjects(2, events, FALSE, INFINITE);
if (irp->IoStatus.u.Status == STATUS_SUCCESS)
{
More information about the wine-cvs
mailing list