[PATCH 1/6] hidclass.sys: Use call_minidriver for IOCTL_HID_GET_INPUT_REPORT.
Rémi Bernon
rbernon at codeweavers.com
Thu Aug 5 03:36:02 CDT 2021
Signed-off-by: Rémi Bernon <rbernon at codeweavers.com>
---
dlls/hidclass.sys/device.c | 11 ++---------
1 file changed, 2 insertions(+), 9 deletions(-)
diff --git a/dlls/hidclass.sys/device.c b/dlls/hidclass.sys/device.c
index 61126571ac6..3a577aabfbd 100644
--- a/dlls/hidclass.sys/device.c
+++ b/dlls/hidclass.sys/device.c
@@ -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)
{
--
2.32.0
More information about the wine-devel
mailing list