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
ddac3dcc
Commit
ddac3dcc
authored
May 08, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
netapi32: Use strncmpiW instead of memicmpW for strings without embedded nulls.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
9ccf1dd8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
netapi32.c
dlls/netapi32/netapi32.c
+3
-3
No files found.
dlls/netapi32/netapi32.c
View file @
ddac3dcc
...
...
@@ -3394,7 +3394,7 @@ DWORD WINAPI DavGetHTTPFromUNCPath(const WCHAR *unc_path, WCHAR *buf, DWORD *buf
{
p
=
++
q
;
while
(
*
p
&&
(
*
p
!=
'\\'
&&
*
p
!=
'/'
&&
*
p
!=
'@'
))
p
++
;
if
(
p
-
q
==
3
&&
!
memicmp
W
(
q
,
sslW
,
3
))
if
(
p
-
q
==
3
&&
!
strncmpi
W
(
q
,
sslW
,
3
))
{
scheme
=
httpsW
;
q
=
p
;
...
...
@@ -3477,8 +3477,8 @@ DWORD WINAPI DavGetUNCFromHTTPPath(const WCHAR *http_path, WCHAR *buf, DWORD *bu
TRACE
(
"(%s %p %p)
\n
"
,
debugstr_w
(
http_path
),
buf
,
buflen
);
while
(
*
p
&&
*
p
!=
':'
)
{
p
++
;
len
++
;
};
if
(
len
==
ARRAY_SIZE
(
httpW
)
&&
!
memicmp
W
(
http_path
,
httpW
,
len
))
ssl
=
FALSE
;
else
if
(
len
==
ARRAY_SIZE
(
httpsW
)
&&
!
memicmp
W
(
http_path
,
httpsW
,
len
))
ssl
=
TRUE
;
if
(
len
==
ARRAY_SIZE
(
httpW
)
&&
!
strncmpi
W
(
http_path
,
httpW
,
len
))
ssl
=
FALSE
;
else
if
(
len
==
ARRAY_SIZE
(
httpsW
)
&&
!
strncmpi
W
(
http_path
,
httpsW
,
len
))
ssl
=
TRUE
;
else
return
ERROR_INVALID_PARAMETER
;
if
(
p
[
0
]
!=
':'
||
p
[
1
]
!=
'/'
||
p
[
2
]
!=
'/'
)
return
ERROR_INVALID_PARAMETER
;
...
...
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