Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
1dd25f2d
Commit
1dd25f2d
authored
May 08, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Use strncmpiW instead of memicmpW for strings without embedded nulls.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
388a3ef9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
uri.c
dlls/urlmon/uri.c
+2
-2
No files found.
dlls/urlmon/uri.c
View file @
1dd25f2d
...
...
@@ -3889,7 +3889,7 @@ static HRESULT compare_file_paths(const Uri *a, const Uri *b, BOOL *ret)
}
/* Fast path */
if
(
a
->
path_len
==
b
->
path_len
&&
!
memicmp
W
(
a
->
canon_uri
+
a
->
path_start
,
b
->
canon_uri
+
b
->
path_start
,
a
->
path_len
))
{
if
(
a
->
path_len
==
b
->
path_len
&&
!
strncmpi
W
(
a
->
canon_uri
+
a
->
path_start
,
b
->
canon_uri
+
b
->
path_start
,
a
->
path_len
))
{
*
ret
=
TRUE
;
return
S_OK
;
}
...
...
@@ -3909,7 +3909,7 @@ static HRESULT compare_file_paths(const Uri *a, const Uri *b, BOOL *ret)
len_a
=
canonicalize_path_hierarchical
(
a
->
canon_uri
+
a
->
path_start
,
a
->
path_len
,
a
->
scheme_type
,
FALSE
,
0
,
FALSE
,
canon_path_a
);
len_b
=
canonicalize_path_hierarchical
(
b
->
canon_uri
+
b
->
path_start
,
b
->
path_len
,
b
->
scheme_type
,
FALSE
,
0
,
FALSE
,
canon_path_b
);
*
ret
=
len_a
==
len_b
&&
!
memicmp
W
(
canon_path_a
,
canon_path_b
,
len_a
);
*
ret
=
len_a
==
len_b
&&
!
strncmpi
W
(
canon_path_a
,
canon_path_b
,
len_a
);
heap_free
(
canon_path_a
);
heap_free
(
canon_path_b
);
...
...
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