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
acbb6392
Commit
acbb6392
authored
Oct 18, 2002
by
Stefan Leichter
Committed by
Alexandre Julliard
Oct 18, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BuildCommDCBAndTimeoutsA: Made the argument parsing case insensitive.
parent
724c1a60
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
comm.c
dlls/kernel/comm.c
+4
-4
No files found.
dlls/kernel/comm.c
View file @
acbb6392
...
...
@@ -361,25 +361,25 @@ BOOL WINAPI BuildCommDCBAndTimeoutsA(
DWORD
flag
,
x
;
flag
=
0
;
if
(
!
strncmp
(
"baud="
,
ptr
,
5
))
{
if
(
!
strnc
asec
mp
(
"baud="
,
ptr
,
5
))
{
if
(
!
sscanf
(
ptr
+
5
,
"%ld"
,
&
x
))
WARN
(
"Couldn't parse %s
\n
"
,
ptr
);
lpdcb
->
BaudRate
=
x
;
flag
=
1
;
}
if
(
!
strncmp
(
"stop="
,
ptr
,
5
))
{
if
(
!
strnc
asec
mp
(
"stop="
,
ptr
,
5
))
{
if
(
!
sscanf
(
ptr
+
5
,
"%ld"
,
&
x
))
WARN
(
"Couldn't parse %s
\n
"
,
ptr
);
lpdcb
->
StopBits
=
x
;
flag
=
1
;
}
if
(
!
strncmp
(
"data="
,
ptr
,
5
))
{
if
(
!
strnc
asec
mp
(
"data="
,
ptr
,
5
))
{
if
(
!
sscanf
(
ptr
+
5
,
"%ld"
,
&
x
))
WARN
(
"Couldn't parse %s
\n
"
,
ptr
);
lpdcb
->
ByteSize
=
x
;
flag
=
1
;
}
if
(
!
strncmp
(
"parity="
,
ptr
,
7
))
{
if
(
!
strnc
asec
mp
(
"parity="
,
ptr
,
7
))
{
lpdcb
->
fParity
=
TRUE
;
switch
(
ptr
[
7
])
{
case
'N'
:
case
'n'
:
...
...
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