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
69494b87
Commit
69494b87
authored
Apr 24, 2002
by
Marcelo Welter
Committed by
Alexandre Julliard
Apr 24, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix to old DCB format parsing.
parent
61245b28
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
comm.c
dlls/kernel/comm.c
+9
-9
No files found.
dlls/kernel/comm.c
View file @
69494b87
...
...
@@ -168,16 +168,16 @@ BOOL WINAPI COMM_BuildOldCommDCB(LPCSTR device, LPDCB lpdcb)
TRACE
(
"(%s), ptr %p
\n
"
,
device
,
lpdcb
);
if
(
strncasecmp
(
device
,
"COM"
,
3
))
return
FALSE
;
if
(
!*
(
device
+
4
))
return
FALSE
;
/* Some applications call this function with "9600,n,8,1"
* not sending the "COM1:" parameter at left of string */
if
(
!
strncasecmp
(
device
,
"COM"
,
3
))
{
if
(
!
device
[
3
])
return
FALSE
;
if
(
device
[
4
]
!=
':'
&&
device
[
4
]
!=
' '
)
return
FALSE
;
strcpy
(
temp
,
device
+
5
);
}
else
strcpy
(
temp
,
device
);
if
((
*
(
device
+
4
)
!=
':'
)
&&
(
*
(
device
+
4
)
!=
' '
))
return
FALSE
;
strcpy
(
temp
,
device
+
5
);
last
=
temp
[
strlen
(
temp
)
-
1
];
ptr
=
strtok
(
temp
,
", "
);
...
...
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