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
0d17228f
Commit
0d17228f
authored
Sep 12, 2016
by
Bruno Jesus
Committed by
Alexandre Julliard
Sep 13, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput: Handle NULL effect envelope before testing its parameters.
Signed-off-by:
Bruno Jesus
<
00cpxxx@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
c1bc25dd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
effect_linuxinput.c
dlls/dinput/effect_linuxinput.c
+6
-3
No files found.
dlls/dinput/effect_linuxinput.c
View file @
0d17228f
...
@@ -585,9 +585,12 @@ static HRESULT WINAPI LinuxInputEffectImpl_SetParameters(
...
@@ -585,9 +585,12 @@ static HRESULT WINAPI LinuxInputEffectImpl_SetParameters(
env
->
fade_length
=
0
;
env
->
fade_length
=
0
;
env
->
fade_level
=
0
;
env
->
fade_level
=
0
;
}
}
else
if
(
peff
->
lpEnvelope
->
dwAttackTime
||
peff
->
lpEnvelope
->
dwAttackLevel
||
else
if
(
peff
->
lpEnvelope
)
peff
->
lpEnvelope
->
dwFadeTime
||
peff
->
lpEnvelope
->
dwFadeLevel
)
{
WARN
(
"Ignoring dinput envelope not supported in the linux effect
\n
"
);
if
(
peff
->
lpEnvelope
->
dwAttackTime
||
peff
->
lpEnvelope
->
dwAttackLevel
||
peff
->
lpEnvelope
->
dwFadeTime
||
peff
->
lpEnvelope
->
dwFadeLevel
)
WARN
(
"Ignoring dinput envelope not supported in the linux effect
\n
"
);
}
}
}
/* Gain and Sample Period settings are not supported by the linux
/* Gain and Sample Period settings are not supported by the linux
...
...
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