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
0d345018
Commit
0d345018
authored
Apr 14, 2004
by
Rein Klazes
Committed by
Alexandre Julliard
Apr 14, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add missing POSIX baud rates to GetCommState and SetCommState.
parent
bbdd20d5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
63 additions
and
0 deletions
+63
-0
comm.c
dlls/kernel/comm.c
+63
-0
No files found.
dlls/kernel/comm.c
View file @
0d345018
...
@@ -1131,10 +1131,28 @@ BOOL WINAPI SetCommState(
...
@@ -1131,10 +1131,28 @@ BOOL WINAPI SetCommState(
#ifdef CBAUD
#ifdef CBAUD
port
.
c_cflag
&=
~
CBAUD
;
port
.
c_cflag
&=
~
CBAUD
;
switch
(
lpdcb
->
BaudRate
)
{
switch
(
lpdcb
->
BaudRate
)
{
case
0
:
port
.
c_cflag
|=
B0
;
break
;
case
50
:
port
.
c_cflag
|=
B50
;
break
;
case
75
:
port
.
c_cflag
|=
B75
;
break
;
case
110
:
case
110
:
case
CBR_110
:
case
CBR_110
:
port
.
c_cflag
|=
B110
;
port
.
c_cflag
|=
B110
;
break
;
break
;
case
134
:
port
.
c_cflag
|=
B134
;
break
;
case
150
:
port
.
c_cflag
|=
B150
;
break
;
case
200
:
port
.
c_cflag
|=
B200
;
break
;
case
300
:
case
300
:
case
CBR_300
:
case
CBR_300
:
port
.
c_cflag
|=
B300
;
port
.
c_cflag
|=
B300
;
...
@@ -1147,6 +1165,9 @@ BOOL WINAPI SetCommState(
...
@@ -1147,6 +1165,9 @@ BOOL WINAPI SetCommState(
case
CBR_1200
:
case
CBR_1200
:
port
.
c_cflag
|=
B1200
;
port
.
c_cflag
|=
B1200
;
break
;
break
;
case
1800
:
port
.
c_cflag
|=
B1800
;
break
;
case
2400
:
case
2400
:
case
CBR_2400
:
case
CBR_2400
:
port
.
c_cflag
|=
B2400
;
port
.
c_cflag
|=
B2400
;
...
@@ -1218,10 +1239,28 @@ BOOL WINAPI SetCommState(
...
@@ -1218,10 +1239,28 @@ BOOL WINAPI SetCommState(
}
}
#elif !defined(__EMX__)
#elif !defined(__EMX__)
switch
(
lpdcb
->
BaudRate
)
{
switch
(
lpdcb
->
BaudRate
)
{
case
0
:
port
.
c_ospeed
=
B0
;
break
;
case
50
:
port
.
c_ospeed
=
B50
;
break
;
case
75
:
port
.
c_ospeed
=
B75
;
break
;
case
110
:
case
110
:
case
CBR_110
:
case
CBR_110
:
port
.
c_ospeed
=
B110
;
port
.
c_ospeed
=
B110
;
break
;
break
;
case
134
:
port
.
c_ospeed
=
B134
;
break
;
case
150
:
port
.
c_ospeed
=
B150
;
break
;
case
200
:
port
.
c_ospeed
=
B200
;
break
;
case
300
:
case
300
:
case
CBR_300
:
case
CBR_300
:
port
.
c_ospeed
=
B300
;
port
.
c_ospeed
=
B300
;
...
@@ -1234,6 +1273,9 @@ BOOL WINAPI SetCommState(
...
@@ -1234,6 +1273,9 @@ BOOL WINAPI SetCommState(
case
CBR_1200
:
case
CBR_1200
:
port
.
c_ospeed
=
B1200
;
port
.
c_ospeed
=
B1200
;
break
;
break
;
case
1800
:
port
.
c_ospeed
=
B1800
;
break
;
case
2400
:
case
2400
:
case
CBR_2400
:
case
CBR_2400
:
port
.
c_ospeed
=
B2400
;
port
.
c_ospeed
=
B2400
;
...
@@ -1481,9 +1523,27 @@ BOOL WINAPI GetCommState(
...
@@ -1481,9 +1523,27 @@ BOOL WINAPI GetCommState(
speed
=
(
cfgetospeed
(
&
port
));
speed
=
(
cfgetospeed
(
&
port
));
#endif
#endif
switch
(
speed
)
{
switch
(
speed
)
{
case
B0
:
lpdcb
->
BaudRate
=
0
;
break
;
case
B50
:
lpdcb
->
BaudRate
=
50
;
break
;
case
B75
:
lpdcb
->
BaudRate
=
75
;
break
;
case
B110
:
case
B110
:
lpdcb
->
BaudRate
=
110
;
lpdcb
->
BaudRate
=
110
;
break
;
break
;
case
B134
:
lpdcb
->
BaudRate
=
134
;
break
;
case
B150
:
lpdcb
->
BaudRate
=
150
;
break
;
case
B200
:
lpdcb
->
BaudRate
=
200
;
break
;
case
B300
:
case
B300
:
lpdcb
->
BaudRate
=
300
;
lpdcb
->
BaudRate
=
300
;
break
;
break
;
...
@@ -1493,6 +1553,9 @@ BOOL WINAPI GetCommState(
...
@@ -1493,6 +1553,9 @@ BOOL WINAPI GetCommState(
case
B1200
:
case
B1200
:
lpdcb
->
BaudRate
=
1200
;
lpdcb
->
BaudRate
=
1200
;
break
;
break
;
case
B1800
:
lpdcb
->
BaudRate
=
1800
;
break
;
case
B2400
:
case
B2400
:
lpdcb
->
BaudRate
=
2400
;
lpdcb
->
BaudRate
=
2400
;
break
;
break
;
...
...
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