https://git.reactos.org/?p=reactos.git;a=commitdiff;h=13f70a1e5fafef4c6c51a…
commit 13f70a1e5fafef4c6c51a4be34a2d43868c79370
Author: winesync <ros-dev(a)reactos.org>
AuthorDate: Sun Mar 13 01:34:04 2022 +0100
Commit: Mark Jansen <mark.jansen(a)reactos.org>
CommitDate: Sun Mar 20 19:28:21 2022 +0100
[WINESYNC] msi: Use strncmpiW instead of memicmpW for strings without embedded nulls.
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 280d10b27715c86a5784bba8db7db1e52b1602fa by Alexandre Julliard
<julliard(a)winehq.org>
---
dll/win32/msi/dialog.c | 2 +-
dll/win32/msi/tokenize.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dll/win32/msi/dialog.c b/dll/win32/msi/dialog.c
index d11f09c12cf..d0a8c821fd7 100644
--- a/dll/win32/msi/dialog.c
+++ b/dll/win32/msi/dialog.c
@@ -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++;
diff --git a/dll/win32/msi/tokenize.c b/dll/win32/msi/tokenize.c
index d1c2da97439..e429495ae17 100644
--- a/dll/win32/msi/tokenize.c
+++ b/dll/win32/msi/tokenize.c
@@ -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;