Commit 280d10b2 authored by Alexandre Julliard's avatar Alexandre Julliard

msi: Use strncmpiW instead of memicmpW for strings without embedded nulls.

parent d7ef6cbb
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment