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
d0070935
Commit
d0070935
authored
Aug 24, 2016
by
Bruno Jesus
Committed by
Alexandre Julliard
Aug 25, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput: Fix infinite effect length handling.
Based on ideas by Elias Vanderstuyft. Signed-off-by:
Bruno Jesus
<
00cpxxx@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
7d88a12d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
3 deletions
+14
-3
effect_linuxinput.c
dlls/dinput/effect_linuxinput.c
+14
-3
No files found.
dlls/dinput/effect_linuxinput.c
View file @
d0070935
...
...
@@ -302,8 +302,12 @@ static HRESULT WINAPI LinuxInputEffectImpl_GetParameters(
}
}
if
(
dwFlags
&
DIEP_DURATION
)
{
peff
->
dwDuration
=
(
DWORD
)
This
->
effect
.
replay
.
length
*
1000
;
if
(
dwFlags
&
DIEP_DURATION
)
{
if
(
!
This
->
effect
.
replay
.
length
)
/* infinite for the linux driver */
peff
->
dwDuration
=
INFINITE
;
else
peff
->
dwDuration
=
(
DWORD
)
This
->
effect
.
replay
.
length
*
1000
;
}
if
(
dwFlags
&
DIEP_ENVELOPE
)
{
...
...
@@ -535,7 +539,14 @@ static HRESULT WINAPI LinuxInputEffectImpl_SetParameters(
}
if
(
dwFlags
&
DIEP_DURATION
)
This
->
effect
.
replay
.
length
=
peff
->
dwDuration
/
1000
;
{
if
(
peff
->
dwDuration
==
INFINITE
)
This
->
effect
.
replay
.
length
=
0
;
/* infinite for the linux driver */
else
if
(
peff
->
dwDuration
>
1000
)
This
->
effect
.
replay
.
length
=
peff
->
dwDuration
/
1000
;
else
This
->
effect
.
replay
.
length
=
1
;
}
if
(
dwFlags
&
DIEP_ENVELOPE
)
{
struct
ff_envelope
*
env
;
...
...
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