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
10dd6087
Commit
10dd6087
authored
Sep 14, 2021
by
Rémi Bernon
Committed by
Alexandre Julliard
Sep 14, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput8/tests: Fix reported expected length in test message.
Signed-off-by:
Rémi Bernon
<
rbernon@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
d40d8d96
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
hid.c
dlls/dinput8/tests/hid.c
+6
-3
No files found.
dlls/dinput8/tests/hid.c
View file @
10dd6087
...
...
@@ -2105,7 +2105,8 @@ static void test_hidp( HANDLE file, HANDLE async_file, int report_id, BOOL polle
ok
(
GetLastError
()
==
ERROR_IO_PENDING
,
"ReadFile returned error %u
\n
"
,
GetLastError
()
);
ret
=
GetOverlappedResult
(
async_file
,
&
overlapped
,
&
value
,
TRUE
);
ok
(
ret
,
"GetOverlappedResult failed, last error %u
\n
"
,
GetLastError
()
);
ok
(
value
==
(
report_id
?
3
:
4
),
"GetOverlappedResult returned length %u, expected 3
\n
"
,
value
);
ok
(
value
==
(
report_id
?
3
:
4
),
"GetOverlappedResult returned length %u, expected %u
\n
"
,
value
,
(
report_id
?
3
:
4
)
);
ResetEvent
(
overlapped
.
hEvent
);
memcpy
(
buffer
,
report
,
caps
.
InputReportByteLength
);
...
...
@@ -2124,11 +2125,13 @@ static void test_hidp( HANDLE file, HANDLE async_file, int report_id, BOOL polle
/* wait for second report to be ready */
ret
=
GetOverlappedResult
(
async_file
,
&
overlapped2
,
&
value
,
TRUE
);
ok
(
ret
,
"GetOverlappedResult failed, last error %u
\n
"
,
GetLastError
()
);
ok
(
value
==
(
report_id
?
3
:
4
),
"GetOverlappedResult returned length %u, expected 3
\n
"
,
value
);
ok
(
value
==
(
report_id
?
3
:
4
),
"GetOverlappedResult returned length %u, expected %u
\n
"
,
value
,
(
report_id
?
3
:
4
)
);
/* first report should be ready and the same */
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
);
ok
(
value
==
(
report_id
?
3
:
4
),
"GetOverlappedResult returned length %u, expected %u
\n
"
,
value
,
(
report_id
?
3
:
4
)
);
ok
(
memcmp
(
report
,
buffer
+
caps
.
InputReportByteLength
,
caps
.
InputReportByteLength
),
"expected different report
\n
"
);
ok
(
!
memcmp
(
report
,
buffer
,
caps
.
InputReportByteLength
),
"expected identical reports
\n
"
);
...
...
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