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
9f48f4d5
Commit
9f48f4d5
authored
Nov 24, 2022
by
Rémi Bernon
Committed by
Alexandre Julliard
Nov 25, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windows.gaming.input: Set initial effect parameters within the CS.
parent
5f8f6c34
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
9 deletions
+7
-9
force_feedback.c
dlls/windows.gaming.input/force_feedback.c
+7
-9
No files found.
dlls/windows.gaming.input/force_feedback.c
View file @
9f48f4d5
...
@@ -567,17 +567,15 @@ static HRESULT WINAPI motor_load_effect_async( IUnknown *invoker, IUnknown *para
...
@@ -567,17 +567,15 @@ static HRESULT WINAPI motor_load_effect_async( IUnknown *invoker, IUnknown *para
IDirectInputEffect
*
dinput_effect
;
IDirectInputEffect
*
dinput_effect
;
HRESULT
hr
;
HRESULT
hr
;
if
(
SUCCEEDED
(
hr
=
IDirectInputDevice8_CreateEffect
(
impl
->
device
,
&
effect
->
type
,
&
effect
->
params
,
&
dinput_effect
,
NULL
)))
EnterCriticalSection
(
&
effect
->
cs
);
if
(
SUCCEEDED
(
hr
=
IDirectInputDevice8_CreateEffect
(
impl
->
device
,
&
effect
->
type
,
&
effect
->
params
,
&
dinput_effect
,
NULL
)))
{
{
EnterCriticalSection
(
&
effect
->
cs
);
if
(
effect
->
effect
)
IDirectInputEffect_Release
(
effect
->
effect
);
if
(
!
effect
->
effect
)
effect
->
effect
=
dinput_effect
;
{
IDirectInputEffect_AddRef
(
effect
->
effect
);
effect
->
effect
=
dinput_effect
;
IDirectInputEffect_AddRef
(
effect
->
effect
);
}
LeaveCriticalSection
(
&
effect
->
cs
);
IDirectInputEffect_Release
(
dinput_effect
);
}
}
LeaveCriticalSection
(
&
effect
->
cs
);
result
->
vt
=
VT_UI4
;
result
->
vt
=
VT_UI4
;
if
(
SUCCEEDED
(
hr
))
result
->
ulVal
=
ForceFeedbackLoadEffectResult_Succeeded
;
if
(
SUCCEEDED
(
hr
))
result
->
ulVal
=
ForceFeedbackLoadEffectResult_Succeeded
;
...
...
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