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
7e2f26d6
Commit
7e2f26d6
authored
Nov 03, 2014
by
Bruno Jesus
Committed by
Alexandre Julliard
Nov 04, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput: Ensure variable is initialized when #define is not found (Cppcheck).
parent
e3c44185
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
joystick_linux.c
dlls/dinput/joystick_linux.c
+6
-0
No files found.
dlls/dinput/joystick_linux.c
View file @
7e2f26d6
...
...
@@ -169,6 +169,9 @@ static INT find_joystick_devices(void)
WARN
(
"ioctl(%s,JSIOCGAXES) failed: %s, defauting to 2
\n
"
,
joydev
.
device
,
strerror
(
errno
));
joydev
.
axis_count
=
2
;
}
#else
WARN
(
"reading number of joystick axes unsupported in this platform, defaulting to 2
\n
"
);
joydev
.
axis_count
=
2
;
#endif
#ifdef JSIOCGBUTTONS
if
(
ioctl
(
fd
,
JSIOCGBUTTONS
,
&
joydev
.
button_count
)
<
0
)
...
...
@@ -176,6 +179,9 @@ static INT find_joystick_devices(void)
WARN
(
"ioctl(%s,JSIOCGBUTTONS) failed: %s, defauting to 2
\n
"
,
joydev
.
device
,
strerror
(
errno
));
joydev
.
button_count
=
2
;
}
#else
WARN
(
"reading number of joystick buttons unsupported in this platform, defaulting to 2
\n
"
);
joydev
.
button_count
=
2
;
#endif
if
(
ioctl
(
fd
,
JSIOCGAXMAP
,
axes_map
)
<
0
)
...
...
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