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
27f45684
Commit
27f45684
authored
Jan 26, 2017
by
Bruno Jesus
Committed by
Alexandre Julliard
Jan 30, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput: DISFFC_RESET will not release the effects.
Signed-off-by:
Bruno Jesus
<
00cpxxx@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
2d2d8332
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
joystick_linuxinput.c
dlls/dinput/joystick_linuxinput.c
+8
-6
No files found.
dlls/dinput/joystick_linuxinput.c
View file @
27f45684
...
...
@@ -1331,9 +1331,9 @@ static HRESULT WINAPI JoystickWImpl_SendForceFeedbackCommand(LPDIRECTINPUTDEVICE
{
case
DISFFC_STOPALL
:
{
/* Stop all effects */
effect_list_item
*
itr
;
/* Stop all effects */
LIST_FOR_EACH_ENTRY
(
itr
,
&
This
->
ff_effects
,
effect_list_item
,
entry
)
IDirectInputEffect_Stop
(
itr
->
ref
);
break
;
...
...
@@ -1341,12 +1341,14 @@ static HRESULT WINAPI JoystickWImpl_SendForceFeedbackCommand(LPDIRECTINPUTDEVICE
case
DISFFC_RESET
:
{
effect_list_item
*
itr
,
*
ptr
;
effect_list_item
*
itr
;
/* Stop, unload, release and free all effects */
/* This returns the device to its "bare" state */
LIST_FOR_EACH_ENTRY_SAFE
(
itr
,
ptr
,
&
This
->
ff_effects
,
effect_list_item
,
entry
)
IDirectInputEffect_Release
(
itr
->
ref
);
/* Stop and unload all effects. It is not true that effects are released */
LIST_FOR_EACH_ENTRY
(
itr
,
&
This
->
ff_effects
,
effect_list_item
,
entry
)
{
IDirectInputEffect_Stop
(
itr
->
ref
);
IDirectInputEffect_Unload
(
itr
->
ref
);
}
break
;
}
case
DISFFC_PAUSE
:
...
...
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