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
6925fb0b
Commit
6925fb0b
authored
Feb 13, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput: Add error check to silence a compiler warning.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
71ddc97b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
config.c
dlls/dinput/config.c
+4
-3
No files found.
dlls/dinput/config.c
View file @
6925fb0b
...
@@ -298,10 +298,11 @@ static void assign_action(HWND dialog)
...
@@ -298,10 +298,11 @@ static void assign_action(HWND dialog)
int
obj
=
lv_get_cur_item
(
dialog
);
int
obj
=
lv_get_cur_item
(
dialog
);
int
old_action
=
lv_get_item_data
(
dialog
,
obj
);
int
old_action
=
lv_get_item_data
(
dialog
,
obj
);
int
used_obj
;
int
used_obj
;
DWORD
type
;
DIDEVICEOBJECTINSTANCEW
ddo
=
device
->
ddo
[
obj
];
if
(
old_action
==
action
)
return
;
if
(
old_action
==
action
)
return
;
if
(
obj
<
0
)
return
;
type
=
device
->
ddo
[
obj
].
dwType
;
/* Clear old action */
/* Clear old action */
if
(
old_action
!=
-
1
)
if
(
old_action
!=
-
1
)
...
@@ -320,7 +321,7 @@ static void assign_action(HWND dialog)
...
@@ -320,7 +321,7 @@ static void assign_action(HWND dialog)
lv_set_action
(
dialog
,
used_obj
,
-
1
,
lpdiaf
);
lv_set_action
(
dialog
,
used_obj
,
-
1
,
lpdiaf
);
/* Set new action */
/* Set new action */
lpdiaf
->
rgoAction
[
action
].
dwObjID
=
ddo
.
dwT
ype
;
lpdiaf
->
rgoAction
[
action
].
dwObjID
=
t
ype
;
lpdiaf
->
rgoAction
[
action
].
guidInstance
=
device
->
ddi
.
guidInstance
;
lpdiaf
->
rgoAction
[
action
].
guidInstance
=
device
->
ddi
.
guidInstance
;
lpdiaf
->
rgoAction
[
action
].
dwHow
=
DIAH_USERCONFIG
;
lpdiaf
->
rgoAction
[
action
].
dwHow
=
DIAH_USERCONFIG
;
...
...
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