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
280d10b2
Commit
280d10b2
authored
May 07, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Use strncmpiW instead of memicmpW for strings without embedded nulls.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
d7ef6cbb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
dialog.c
dlls/msi/dialog.c
+1
-1
tokenize.c
dlls/msi/tokenize.c
+1
-1
No files found.
dlls/msi/dialog.c
View file @
280d10b2
...
...
@@ -3471,7 +3471,7 @@ static UINT msi_dialog_hyperlink_handler( msi_dialog *dialog, msi_control *contr
while
(
*
p
&&
isspaceW
(
*
p
))
p
++
;
len
=
strlenW
(
p
);
if
(
len
>
len_href
&&
!
memicmp
W
(
p
,
hrefW
,
len_href
))
if
(
len
>
len_href
&&
!
strncmpi
W
(
p
,
hrefW
,
len_href
))
{
p
+=
len_href
;
while
(
*
p
&&
isspaceW
(
*
p
))
p
++
;
...
...
dlls/msi/tokenize.c
View file @
280d10b2
...
...
@@ -128,7 +128,7 @@ static int compKeyword(const void *m1, const void *m2){
const
Keyword
*
k1
=
m1
,
*
k2
=
m2
;
int
ret
,
len
=
min
(
k1
->
len
,
k2
->
len
);
if
((
ret
=
memicmp
W
(
k1
->
name
,
k2
->
name
,
len
)))
return
ret
;
if
((
ret
=
strncmpi
W
(
k1
->
name
,
k2
->
name
,
len
)))
return
ret
;
if
(
k1
->
len
<
k2
->
len
)
return
-
1
;
else
if
(
k1
->
len
>
k2
->
len
)
return
1
;
return
0
;
...
...
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