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
4af8f423
Commit
4af8f423
authored
Mar 28, 2023
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Mar 30, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput/tests: Use separate statements instead of the comma operator.
parent
c0c68ee8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
force_feedback.c
dlls/dinput/tests/force_feedback.c
+2
-2
No files found.
dlls/dinput/tests/force_feedback.c
View file @
4af8f423
...
...
@@ -1455,7 +1455,7 @@ static void test_periodic_effect( IDirectInputDevice8W *device, HANDLE file, DWO
set_hid_expect
(
file
,
NULL
,
0
);
desc
=
expect_desc
;
desc
.
dwDuration
=
INFINITE
;
desc
.
dwTriggerButton
=
DIDFT_PSHBUTTON
|
DIDFT_MAKEINSTANCE
(
0
)
|
DIDFT_FFEFFECTTRIGGER
,
desc
.
dwTriggerButton
=
DIDFT_PSHBUTTON
|
DIDFT_MAKEINSTANCE
(
0
)
|
DIDFT_FFEFFECTTRIGGER
;
hr
=
IDirectInputEffect_SetParameters
(
effect
,
&
desc
,
DIEP_NODOWNLOAD
|
DIEP_DURATION
|
DIEP_TRIGGERBUTTON
);
ok
(
hr
==
DI_DOWNLOADSKIPPED
,
"SetParameters returned %#lx
\n
"
,
hr
);
set_hid_expect
(
file
,
expect_update
,
sizeof
(
expect_update
)
);
...
...
@@ -1464,7 +1464,7 @@ static void test_periodic_effect( IDirectInputDevice8W *device, HANDLE file, DWO
wait_hid_expect
(
file
,
100
);
/* these updates are sent asynchronously */
desc
=
expect_desc
;
desc
.
dwDuration
=
INFINITE
;
desc
.
dwTriggerButton
=
DIDFT_PSHBUTTON
|
DIDFT_MAKEINSTANCE
(
0
)
|
DIDFT_FFEFFECTTRIGGER
,
desc
.
dwTriggerButton
=
DIDFT_PSHBUTTON
|
DIDFT_MAKEINSTANCE
(
0
)
|
DIDFT_FFEFFECTTRIGGER
;
hr
=
IDirectInputEffect_SetParameters
(
effect
,
&
desc
,
DIEP_NODOWNLOAD
|
DIEP_DURATION
|
DIEP_TRIGGERBUTTON
);
ok
(
hr
==
DI_DOWNLOADSKIPPED
,
"SetParameters returned %#lx
\n
"
,
hr
);
set_hid_expect
(
file
,
expect_update
,
sizeof
(
expect_update
)
);
...
...
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