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:
parent
01885acd5d
commit
a6435b3dda
|
@ -193,18 +193,11 @@ static DWORD CALLBACK hid_device_thread(void *args)
|
||||||
{
|
{
|
||||||
while(1)
|
while(1)
|
||||||
{
|
{
|
||||||
KEVENT event;
|
|
||||||
|
|
||||||
KeInitializeEvent(&event, NotificationEvent, FALSE);
|
|
||||||
|
|
||||||
packet->reportBufferLen = report_size;
|
packet->reportBufferLen = report_size;
|
||||||
packet->reportId = 0;
|
packet->reportId = 0;
|
||||||
|
|
||||||
irp = IoBuildDeviceIoControlRequest(IOCTL_HID_GET_INPUT_REPORT, ext->u.pdo.parent_fdo,
|
call_minidriver( IOCTL_HID_GET_INPUT_REPORT, ext->u.pdo.parent_fdo, NULL, 0, packet,
|
||||||
NULL, 0, packet, sizeof(*packet), TRUE, &event, &irp_status);
|
sizeof(*packet), &irp_status );
|
||||||
|
|
||||||
if (IoCallDriver(ext->u.pdo.parent_fdo, irp) == STATUS_PENDING)
|
|
||||||
KeWaitForSingleObject(&event, Executive, KernelMode, FALSE, NULL);
|
|
||||||
|
|
||||||
if (irp_status.Status == STATUS_SUCCESS)
|
if (irp_status.Status == STATUS_SUCCESS)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue