Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
64191946
Commit
64191946
authored
Oct 12, 2021
by
Rémi Bernon
Committed by
Alexandre Julliard
Oct 12, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hidclass.sys: Don't queue reports in polled mode.
Signed-off-by:
Rémi Bernon
<
rbernon@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
6a869a2a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
6 deletions
+1
-6
hid.c
dlls/dinput8/tests/hid.c
+0
-5
device.c
dlls/hidclass.sys/device.c
+1
-1
No files found.
dlls/dinput8/tests/hid.c
View file @
64191946
...
...
@@ -2183,16 +2183,12 @@ static void test_hidp( HANDLE file, HANDLE async_file, int report_id, BOOL polle
SetLastError
(
0xdeadbeef
);
ret
=
ReadFile
(
async_file
,
report
,
caps
.
InputReportByteLength
,
NULL
,
&
overlapped
);
todo_wine
ok
(
!
ret
,
"ReadFile succeeded
\n
"
);
todo_wine
ok
(
GetLastError
()
==
ERROR_IO_PENDING
,
"ReadFile returned error %u
\n
"
,
GetLastError
()
);
SetLastError
(
0xdeadbeef
);
ret
=
ReadFile
(
async_file
,
buffer
,
caps
.
InputReportByteLength
,
NULL
,
&
overlapped2
);
todo_wine
ok
(
!
ret
,
"ReadFile succeeded
\n
"
);
todo_wine
ok
(
GetLastError
()
==
ERROR_IO_PENDING
,
"ReadFile returned error %u
\n
"
,
GetLastError
()
);
/* wait for second report to be ready */
...
...
@@ -2205,7 +2201,6 @@ static void test_hidp( HANDLE file, HANDLE async_file, int report_id, BOOL polle
ok
(
ret
,
"GetOverlappedResult failed, last error %u
\n
"
,
GetLastError
()
);
ok
(
value
==
(
report_id
?
3
:
4
),
"GetOverlappedResult returned length %u, expected %u
\n
"
,
value
,
(
report_id
?
3
:
4
)
);
todo_wine
ok
(
!
memcmp
(
report
,
buffer
,
caps
.
InputReportByteLength
),
"expected identical reports
\n
"
);
CloseHandle
(
overlapped
.
hEvent
);
...
...
dlls/hidclass.sys/device.c
View file @
64191946
...
...
@@ -264,7 +264,7 @@ static void hid_device_queue_input( DEVICE_OBJECT *device, HID_XFER_PACKET *pack
KeAcquireSpinLock
(
&
ext
->
u
.
pdo
.
queues_lock
,
&
irql
);
LIST_FOR_EACH_ENTRY
(
queue
,
&
ext
->
u
.
pdo
.
queues
,
struct
hid_queue
,
entry
)
{
hid_queue_push_report
(
queue
,
last_report
);
if
(
!
polled
)
hid_queue_push_report
(
queue
,
last_report
);
do
{
...
...
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