Alexandre Julliard : fusion: Use strncmpiW instead of memicmpW for strings without embedded nulls.
Alexandre Julliard
julliard at winehq.org
Tue May 7 17:32:46 CDT 2019
Module: wine
Branch: master
Commit: 70441899256db1d622e9660587790302776d0826
URL: https://source.winehq.org/git/wine.git/?a=commit;h=70441899256db1d622e9660587790302776d0826
Author: Alexandre Julliard <julliard at winehq.org>
Date: Tue May 7 11:30:58 2019 -0500
fusion: Use strncmpiW instead of memicmpW for strings without embedded nulls.
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/fusion/asmenum.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/fusion/asmenum.c b/dlls/fusion/asmenum.c
index ba86818..915515e 100644
--- a/dlls/fusion/asmenum.c
+++ b/dlls/fusion/asmenum.c
@@ -350,7 +350,7 @@ static HRESULT enum_gac_assemblies(struct list *assemblies, IAssemblyName *name,
{
unsigned int prefix_len = strlenW(prefix);
if (strlenW(ffd.cFileName) >= prefix_len &&
- !memicmpW(ffd.cFileName, prefix, prefix_len))
+ !strncmpiW(ffd.cFileName, prefix, prefix_len))
version += prefix_len;
}
sprintfW(disp, name_fmt, parent, version, token);
More information about the wine-cvs
mailing list