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
91036a04
Commit
91036a04
authored
Jul 05, 2008
by
Vitaliy Margolen
Committed by
Alexandre Julliard
Jul 07, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput: Stop and unload effect when freeing it.
parent
85e2aa1d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
11 deletions
+14
-11
effect_linuxinput.c
dlls/dinput/effect_linuxinput.c
+14
-11
No files found.
dlls/dinput/effect_linuxinput.c
View file @
91036a04
...
...
@@ -724,17 +724,6 @@ static HRESULT WINAPI LinuxInputEffectImpl_SetParameters(
return
DI_OK
;
}
static
ULONG
WINAPI
LinuxInputEffectImpl_Release
(
LPDIRECTINPUTEFFECT
iface
)
{
LinuxInputEffectImpl
*
This
=
(
LinuxInputEffectImpl
*
)
iface
;
ULONG
ref
=
InterlockedDecrement
(
&
(
This
->
ref
));
if
(
ref
==
0
)
HeapFree
(
GetProcessHeap
(),
0
,
This
);
return
ref
;
}
static
HRESULT
WINAPI
LinuxInputEffectImpl_Stop
(
LPDIRECTINPUTEFFECT
iface
)
{
...
...
@@ -768,6 +757,20 @@ static HRESULT WINAPI LinuxInputEffectImpl_Unload(
return
DI_OK
;
}
static
ULONG
WINAPI
LinuxInputEffectImpl_Release
(
LPDIRECTINPUTEFFECT
iface
)
{
LinuxInputEffectImpl
*
This
=
(
LinuxInputEffectImpl
*
)
iface
;
ULONG
ref
=
InterlockedDecrement
(
&
(
This
->
ref
));
if
(
ref
==
0
)
{
LinuxInputEffectImpl_Stop
(
iface
);
LinuxInputEffectImpl_Unload
(
iface
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
return
ref
;
}
/******************************************************************************
* LinuxInputEffect
*/
...
...
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