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
ed808783
Commit
ed808783
authored
Jan 03, 1999
by
Ove Kaaven
Committed by
Alexandre Julliard
Jan 03, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reading joystick 5 when we only support 4 should fail instead of
hang.
parent
d4fb0570
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
joystick.c
multimedia/joystick.c
+1
-0
No files found.
multimedia/joystick.c
View file @
ed808783
...
@@ -53,6 +53,7 @@ BOOL16 joyOpenDriver(WORD wID)
...
@@ -53,6 +53,7 @@ BOOL16 joyOpenDriver(WORD wID)
char
dev_name
[]
=
"/dev/js%d"
;
char
dev_name
[]
=
"/dev/js%d"
;
char
buf
[
20
];
char
buf
[
20
];
if
(
wID
>
3
)
return
FALSE
;
if
(
joy_dev
[
wID
]
>=
0
)
return
TRUE
;
if
(
joy_dev
[
wID
]
>=
0
)
return
TRUE
;
sprintf
(
buf
,
dev_name
,
wID
);
sprintf
(
buf
,
dev_name
,
wID
);
if
((
joy_dev
[
wID
]
=
open
(
buf
,
O_RDONLY
))
>=
0
)
{
if
((
joy_dev
[
wID
]
=
open
(
buf
,
O_RDONLY
))
>=
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