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
5d3f2d18
Commit
5d3f2d18
authored
Mar 20, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Mar 22, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput: Check IDirectInputDevice8W_SetActionMap flags.
parent
0fe8da86
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
1 deletion
+1
-1
device.c
dlls/dinput/device.c
+1
-0
joystick8.c
dlls/dinput/tests/joystick8.c
+0
-1
No files found.
dlls/dinput/device.c
View file @
5d3f2d18
...
...
@@ -1972,6 +1972,7 @@ static HRESULT WINAPI dinput_device_SetActionMap( IDirectInputDevice8W *iface, D
debugstr_w
(
username
),
flags
);
if
(
!
format
)
return
DIERR_INVALIDPARAM
;
if
(
flags
!=
DIDSAM_DEFAULT
&&
flags
!=
DIDSAM_FORCESAVE
&&
flags
!=
DIDSAM_NOUSER
)
return
DIERR_INVALIDPARAM
;
if
(
!
(
data_format
.
rgodf
=
malloc
(
sizeof
(
DIOBJECTDATAFORMAT
)
*
format
->
dwNumActions
)))
return
DIERR_OUTOFMEMORY
;
data_format
.
dwDataSize
=
format
->
dwDataSize
;
...
...
dlls/dinput/tests/joystick8.c
View file @
5d3f2d18
...
...
@@ -807,7 +807,6 @@ static void test_action_map( IDirectInputDevice8W *device, HANDLE file, HANDLE e
ok
(
hr
==
DIERR_INVALIDPARAM
,
"SetActionMap returned %#lx
\n
"
,
hr
);
flags
=
DIDSAM_FORCESAVE
|
DIDSAM_NOUSER
;
hr
=
IDirectInputDevice8_SetActionMap
(
device
,
&
action_format_1
,
NULL
,
flags
);
todo_wine
ok
(
hr
==
DIERR_INVALIDPARAM
,
"SetActionMap returned %#lx
\n
"
,
hr
);
...
...
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