hidclass.sys: Correct size of IOCTL request and unused return value.

Signed-off-by: Aric Stewart <aric@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Aric Stewart 2015-10-19 10:37:49 -05:00 committed by Alexandre Julliard
parent 26094c5634
commit e27a4b5e1b
1 changed files with 2 additions and 2 deletions

View File

@ -277,7 +277,7 @@ static DWORD CALLBACK hid_device_thread(void *args)
packet->reportId = 0; packet->reportId = 0;
irp = IoBuildDeviceIoControlRequest(IOCTL_HID_GET_INPUT_REPORT, 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); &irp_status);
irpsp = IoGetNextIrpStackLocation(irp); irpsp = IoGetNextIrpStackLocation(irp);
@ -287,7 +287,7 @@ static DWORD CALLBACK hid_device_thread(void *args)
ntrc = IoCallDriver(device, irp); ntrc = IoCallDriver(device, irp);
if (ntrc == STATUS_PENDING) if (ntrc == STATUS_PENDING)
rc = WaitForMultipleObjects(2, events, FALSE, INFINITE); WaitForMultipleObjects(2, events, FALSE, INFINITE);
if (irp->IoStatus.u.Status == STATUS_SUCCESS) if (irp->IoStatus.u.Status == STATUS_SUCCESS)
{ {