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

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2019-05-07 11:31:38 -05:00
parent d7ef6cbbf9
commit 280d10b277
2 changed files with 2 additions and 2 deletions

View File

@ -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++;

View File

@ -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;