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
e8273ae4
Commit
e8273ae4
authored
Aug 18, 2016
by
Bruno Jesus
Committed by
Alexandre Julliard
Aug 19, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput: Cope with NULL flags in LinuxInputEffectImpl_GetEffectStatus.
Signed-off-by:
Bruno Jesus
<
00cpxxx@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
44303b66
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
effect_linuxinput.c
dlls/dinput/effect_linuxinput.c
+3
-0
joystick.c
dlls/dinput/tests/joystick.c
+3
-0
No files found.
dlls/dinput/effect_linuxinput.c
View file @
e8273ae4
...
...
@@ -131,6 +131,9 @@ static HRESULT WINAPI LinuxInputEffectImpl_GetEffectStatus(
{
TRACE
(
"(this=%p,%p)
\n
"
,
iface
,
pdwFlags
);
if
(
!
pdwFlags
)
return
E_POINTER
;
/* linux sends the effect status through an event.
* that event is trapped by our parent joystick driver
* and there is no clean way to pass it back to us. */
...
...
dlls/dinput/tests/joystick.c
View file @
e8273ae4
...
...
@@ -473,6 +473,9 @@ static BOOL CALLBACK EnumJoysticks(const DIDEVICEINSTANCEA *lpddi, void *pvRef)
* - effects are preserved (Download + Start doesn't complain
* about incomplete effect)
*/
hr
=
IDirectInputEffect_GetEffectStatus
(
effect
,
NULL
);
ok
(
hr
==
E_POINTER
,
"IDirectInputEffect_GetEffectStatus() must fail with E_POINTER, got: %08x
\n
"
,
hr
);
effect_status
=
0xdeadbeef
;
hr
=
IDirectInputEffect_GetEffectStatus
(
effect
,
&
effect_status
);
ok
(
hr
==
DI_OK
,
"IDirectInputEffect_GetEffectStatus() failed: %08x
\n
"
,
hr
);
ok
(
effect_status
==
0
,
"IDirectInputEffect_GetEffectStatus() reported effect as started
\n
"
);
...
...
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