hidclass.sys: Return irp->IoStatus.Information from minidriver.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
00008c9d48
commit
ecf6a16b8e
|
@ -526,12 +526,7 @@ NTSTATUS WINAPI pdo_ioctl(DEVICE_OBJECT *device, IRP *irp)
|
|||
sizeof(*packet), &irp->IoStatus );
|
||||
|
||||
if (irp->IoStatus.Status == STATUS_SUCCESS)
|
||||
{
|
||||
irp->IoStatus.Status = copy_packet_into_buffer( packet, buffer, buffer_len, &out_length );
|
||||
irp->IoStatus.Information = out_length;
|
||||
}
|
||||
else
|
||||
irp->IoStatus.Information = 0;
|
||||
free(packet);
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -2475,7 +2475,7 @@ static void test_hidp(HANDLE file, HANDLE async_file, int report_id, BOOL polled
|
|||
value = caps.InputReportByteLength * 2;
|
||||
ret = sync_ioctl(file, IOCTL_HID_GET_INPUT_REPORT, NULL, 0, report, &value);
|
||||
ok(ret, "IOCTL_HID_GET_INPUT_REPORT failed, last error %u\n", GetLastError());
|
||||
todo_wine ok(value == 3, "got length %u, expected 3\n", value);
|
||||
ok(value == 3, "got length %u, expected 3\n", value);
|
||||
ok(report[0] == report_id, "got report[0] %02x, expected %02x\n", report[0], report_id);
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue