hidclass.sys: Use call_minidriver for IOCTL_HID_GET_INPUT_REPORT.

Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Rémi Bernon 2021-08-05 10:36:02 +02:00 committed by Alexandre Julliard
parent 01885acd5d
commit a6435b3dda
1 changed files with 2 additions and 9 deletions

View File

@ -193,18 +193,11 @@ static DWORD CALLBACK hid_device_thread(void *args)
{
while(1)
{
KEVENT event;
KeInitializeEvent(&event, NotificationEvent, FALSE);
packet->reportBufferLen = report_size;
packet->reportId = 0;
irp = IoBuildDeviceIoControlRequest(IOCTL_HID_GET_INPUT_REPORT, ext->u.pdo.parent_fdo,
NULL, 0, packet, sizeof(*packet), TRUE, &event, &irp_status);
if (IoCallDriver(ext->u.pdo.parent_fdo, irp) == STATUS_PENDING)
KeWaitForSingleObject(&event, Executive, KernelMode, FALSE, NULL);
call_minidriver( IOCTL_HID_GET_INPUT_REPORT, ext->u.pdo.parent_fdo, NULL, 0, packet,
sizeof(*packet), &irp_status );
if (irp_status.Status == STATUS_SUCCESS)
{