Commit e27a4b5e authored by Aric Stewart's avatar Aric Stewart Committed by Alexandre Julliard

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

parent 26094c56
...@@ -277,7 +277,7 @@ static DWORD CALLBACK hid_device_thread(void *args) ...@@ -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) ...@@ -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)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment