fusion: Use strncmpiW instead of memicmpW for strings without embedded nulls.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
d9db7faf6c
commit
7044189925
|
@ -350,7 +350,7 @@ static HRESULT enum_gac_assemblies(struct list *assemblies, IAssemblyName *name,
|
||||||
{
|
{
|
||||||
unsigned int prefix_len = strlenW(prefix);
|
unsigned int prefix_len = strlenW(prefix);
|
||||||
if (strlenW(ffd.cFileName) >= prefix_len &&
|
if (strlenW(ffd.cFileName) >= prefix_len &&
|
||||||
!memicmpW(ffd.cFileName, prefix, prefix_len))
|
!strncmpiW(ffd.cFileName, prefix, prefix_len))
|
||||||
version += prefix_len;
|
version += prefix_len;
|
||||||
}
|
}
|
||||||
sprintfW(disp, name_fmt, parent, version, token);
|
sprintfW(disp, name_fmt, parent, version, token);
|
||||||
|
|
Loading…
Reference in New Issue