msi: Use strncmpiW instead of memicmpW for strings without embedded nulls.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
d7ef6cbbf9
commit
280d10b277
|
@ -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 && !memicmpW( p, hrefW, len_href ))
|
||||
if (len > len_href && !strncmpiW( p, hrefW, len_href ))
|
||||
{
|
||||
p += len_href;
|
||||
while (*p && isspaceW( *p )) p++;
|
||||
|
|
|
@ -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 = memicmpW( k1->name, k2->name, len ))) return ret;
|
||||
if ((ret = strncmpiW( k1->name, k2->name, len ))) return ret;
|
||||
if (k1->len < k2->len) return -1;
|
||||
else if (k1->len > k2->len) return 1;
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue