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
bf22424e
Commit
bf22424e
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: Return DI_SETTINGSNOTSAVED when DIDSAM_FORCESAVE is used.
parent
5d3f2d18
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
5 deletions
+1
-5
device.c
dlls/dinput/device.c
+1
-0
joystick8.c
dlls/dinput/tests/joystick8.c
+0
-5
No files found.
dlls/dinput/device.c
View file @
bf22424e
...
...
@@ -2022,6 +2022,7 @@ static HRESULT WINAPI dinput_device_SetActionMap( IDirectInputDevice8W *iface, D
free
(
data_format
.
rgodf
);
if
(
FAILED
(
hr
))
return
hr
;
if
(
flags
==
DIDSAM_FORCESAVE
)
return
DI_SETTINGSNOTSAVED
;
if
(
!
data_format
.
dwNumObjs
)
return
DI_NOEFFECT
;
return
hr
;
}
...
...
dlls/dinput/tests/joystick8.c
View file @
bf22424e
...
...
@@ -818,7 +818,6 @@ static void test_action_map( IDirectInputDevice8W *device, HANDLE file, HANDLE e
/* first SetActionMap call for a user always return DI_SETTINGSNOTSAVED */
hr
=
IDirectInputDevice8_SetActionMap
(
device
,
&
voice_action_format
,
NULL
,
DIDSAM_FORCESAVE
);
todo_wine
ok
(
hr
==
DI_SETTINGSNOTSAVED
,
"SetActionMap returned %#lx
\n
"
,
hr
);
memset
(
prop_username
.
wsz
,
0
,
sizeof
(
prop_username
.
wsz
)
);
...
...
@@ -829,7 +828,6 @@ static void test_action_map( IDirectInputDevice8W *device, HANDLE file, HANDLE e
hr
=
IDirectInputDevice8_SetActionMap
(
device
,
&
voice_action_format
,
NULL
,
DIDSAM_DEFAULT
);
ok
(
hr
==
DI_NOEFFECT
,
"SetActionMap returned %#lx
\n
"
,
hr
);
hr
=
IDirectInputDevice8_SetActionMap
(
device
,
&
voice_action_format
,
NULL
,
DIDSAM_FORCESAVE
);
todo_wine
ok
(
hr
==
DI_SETTINGSNOTSAVED
,
"SetActionMap returned %#lx
\n
"
,
hr
);
memset
(
prop_username
.
wsz
,
0
,
sizeof
(
prop_username
.
wsz
)
);
...
...
@@ -874,10 +872,8 @@ static void test_action_map( IDirectInputDevice8W *device, HANDLE file, HANDLE e
/* DIDSAM_FORCESAVE always returns DI_SETTINGSNOTSAVED */
hr
=
IDirectInputDevice8_SetActionMap
(
device
,
&
action_format
,
L"username"
,
DIDSAM_FORCESAVE
);
todo_wine
ok
(
hr
==
DI_SETTINGSNOTSAVED
,
"SetActionMap returned %#lx
\n
"
,
hr
);
hr
=
IDirectInputDevice8_SetActionMap
(
device
,
&
action_format
,
L"username"
,
DIDSAM_FORCESAVE
);
todo_wine
ok
(
hr
==
DI_SETTINGSNOTSAVED
,
"SetActionMap returned %#lx
\n
"
,
hr
);
check_diactionformatw
(
&
action_format
,
&
expect_action_format_1
);
...
...
@@ -946,7 +942,6 @@ static void test_action_map( IDirectInputDevice8W *device, HANDLE file, HANDLE e
ok
(
hr
==
DI_OK
,
"SetActionMap returned %#lx
\n
"
,
hr
);
check_diactionformatw
(
&
action_format
,
&
expect_action_format_2_filled
);
hr
=
IDirectInputDevice8_SetActionMap
(
device
,
&
action_format
,
L"username"
,
DIDSAM_FORCESAVE
);
todo_wine
ok
(
hr
==
DI_SETTINGSNOTSAVED
,
"SetActionMap returned %#lx
\n
"
,
hr
);
check_diactionformatw
(
&
action_format
,
&
expect_action_format_2_filled
);
...
...
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