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
8bc52f52
Commit
8bc52f52
authored
May 18, 2019
by
Tim Schumacher
Committed by
Alexandre Julliard
May 20, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
joy.cpl: Check if effect is allocated before releasing it.
Signed-off-by:
Tim Schumacher
<
timschumi@gmx.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
7edbbe1e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
main.c
dlls/joy.cpl/main.c
+2
-1
No files found.
dlls/joy.cpl/main.c
View file @
8bc52f52
...
...
@@ -137,7 +137,8 @@ static void destroy_joysticks(struct JoystickData *data)
if
(
data
->
joysticks
[
i
].
forcefeedback
&&
data
->
joysticks
[
i
].
num_effects
>
0
)
{
for
(
j
=
0
;
j
<
data
->
joysticks
[
i
].
num_effects
;
j
++
)
IDirectInputEffect_Release
(
data
->
joysticks
[
i
].
effects
[
j
].
effect
);
if
(
data
->
joysticks
[
i
].
effects
[
j
].
effect
)
IDirectInputEffect_Release
(
data
->
joysticks
[
i
].
effects
[
j
].
effect
);
HeapFree
(
GetProcessHeap
(),
0
,
data
->
joysticks
[
i
].
effects
);
}
...
...
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