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
f89c69c4
Commit
f89c69c4
authored
Sep 27, 2005
by
Alex Villacís Lasso
Committed by
Alexandre Julliard
Sep 27, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tolerate ioctl failure in GetCommState() in order to be capable to use
softmodems.
parent
e96faaa4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
comm.c
dlls/kernel/comm.c
+11
-6
No files found.
dlls/kernel/comm.c
View file @
f89c69c4
...
...
@@ -1491,17 +1491,22 @@ BOOL WINAPI GetCommState(
fd
=
get_comm_fd
(
handle
,
GENERIC_READ
);
if
(
fd
<
0
)
return
FALSE
;
if
(
tcgetattr
(
fd
,
&
port
)
==
-
1
#ifdef TIOCMGET
||
ioctl
(
fd
,
TIOCMGET
,
&
stat
)
==
-
1
#endif
)
{
if
(
tcgetattr
(
fd
,
&
port
)
==
-
1
)
{
int
save_error
=
errno
;
ERR
(
"tcgetattr
or ioctl
error '%s'
\n
"
,
strerror
(
save_error
));
ERR
(
"tcgetattr error '%s'
\n
"
,
strerror
(
save_error
));
COMM_SetCommError
(
handle
,
CE_IOE
);
release_comm_fd
(
handle
,
fd
);
return
FALSE
;
}
#ifdef TIOCMGET
if
(
ioctl
(
fd
,
TIOCMGET
,
&
stat
)
==
-
1
)
{
int
save_error
=
errno
;
WARN
(
"ioctl error '%s'
\n
"
,
strerror
(
save_error
));
stat
=
DTR_CONTROL_ENABLE
|
RTS_CONTROL_ENABLE
;
}
#endif
release_comm_fd
(
handle
,
fd
);
#ifndef __EMX__
#ifdef CBAUD
...
...
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