Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
78254f6e
Commit
78254f6e
authored
Sep 10, 2021
by
Rémi Bernon
Committed by
Alexandre Julliard
Sep 10, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hidclass.sys: Call HID_READ_REPORT to read reports in polled mode.
Signed-off-by:
Rémi Bernon
<
rbernon@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
202296c2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
7 deletions
+2
-7
hid.c
dlls/dinput8/tests/hid.c
+0
-1
device.c
dlls/hidclass.sys/device.c
+2
-6
No files found.
dlls/dinput8/tests/hid.c
View file @
78254f6e
...
...
@@ -1839,7 +1839,6 @@ static void test_hidp( HANDLE file, HANDLE async_file, int report_id, BOOL polle
ret
=
GetOverlappedResult
(
async_file
,
&
overlapped
,
&
value
,
FALSE
);
ok
(
ret
,
"GetOverlappedResult failed, last error %u
\n
"
,
GetLastError
()
);
ok
(
value
==
(
report_id
?
3
:
4
),
"GetOverlappedResult returned length %u, expected 3
\n
"
,
value
);
todo_wine
ok
(
memcmp
(
report
,
buffer
+
caps
.
InputReportByteLength
,
caps
.
InputReportByteLength
),
"expected different report
\n
"
);
ok
(
!
memcmp
(
report
,
buffer
,
caps
.
InputReportByteLength
),
"expected identical reports
\n
"
);
...
...
dlls/hidclass.sys/device.c
View file @
78254f6e
...
...
@@ -278,12 +278,8 @@ static DWORD CALLBACK hid_device_thread(void *args)
packet
->
reportBufferLen
--
;
}
if
(
!
poll_interval
)
call_minidriver
(
IOCTL_HID_READ_REPORT
,
ext
->
u
.
pdo
.
parent_fdo
,
NULL
,
0
,
packet
->
reportBuffer
,
packet
->
reportBufferLen
,
&
io
);
else
call_minidriver
(
IOCTL_HID_GET_INPUT_REPORT
,
ext
->
u
.
pdo
.
parent_fdo
,
NULL
,
0
,
packet
,
sizeof
(
*
packet
),
&
io
);
call_minidriver
(
IOCTL_HID_READ_REPORT
,
ext
->
u
.
pdo
.
parent_fdo
,
NULL
,
0
,
packet
->
reportBuffer
,
packet
->
reportBufferLen
,
&
io
);
if
(
io
.
Status
==
STATUS_SUCCESS
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment