Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
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
Aleksandr Isakov
wine-fonts
Commits
49ce3132
Commit
49ce3132
authored
Apr 01, 2019
by
Piotr Caban
Committed by
Alexandre Julliard
Apr 01, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user.exe16: Don't use strncasecmp.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
267064dc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
comm.c
dlls/user.exe16/comm.c
+3
-3
No files found.
dlls/user.exe16/comm.c
View file @
49ce3132
...
...
@@ -416,7 +416,7 @@ INT16 WINAPI BuildCommDCB16(LPCSTR device, LPDCB16 lpdcb)
TRACE
(
"(%s), ptr %p
\n
"
,
device
,
lpdcb
);
if
(
strncase
cmp
(
device
,
"COM"
,
3
))
if
(
_strni
cmp
(
device
,
"COM"
,
3
))
return
-
1
;
port
=
device
[
3
]
-
'0'
;
...
...
@@ -457,7 +457,7 @@ INT16 WINAPI OpenComm16(LPCSTR device,UINT16 cbInQueue,UINT16 cbOutQueue)
if
(
port
--
==
0
)
ERR
(
"BUG ! COM0 or LPT0 don't exist !
\n
"
);
if
(
!
strncase
cmp
(
device
,
"COM"
,
3
))
if
(
!
_strni
cmp
(
device
,
"COM"
,
3
))
{
if
(
COM
[
port
].
handle
)
return
IE_OPEN
;
...
...
@@ -508,7 +508,7 @@ INT16 WINAPI OpenComm16(LPCSTR device,UINT16 cbInQueue,UINT16 cbOutQueue)
}
}
else
if
(
!
strncase
cmp
(
device
,
"LPT"
,
3
))
{
if
(
!
_strni
cmp
(
device
,
"LPT"
,
3
))
{
if
(
LPT
[
port
].
handle
)
return
IE_OPEN
;
...
...
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