mountmgr.sys: Use strncmpiW instead of memicmpW for strings without embedded nulls.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
cae3324739
commit
38b1a1afca
|
@ -132,14 +132,14 @@ static BOOL matching_mount_point( const struct mount_point *mount, const MOUNTMG
|
||||||
{
|
{
|
||||||
const WCHAR *name = (const WCHAR *)((const char *)spec + spec->SymbolicLinkNameOffset);
|
const WCHAR *name = (const WCHAR *)((const char *)spec + spec->SymbolicLinkNameOffset);
|
||||||
if (spec->SymbolicLinkNameLength != mount->link.Length) return FALSE;
|
if (spec->SymbolicLinkNameLength != mount->link.Length) return FALSE;
|
||||||
if (memicmpW( name, mount->link.Buffer, mount->link.Length/sizeof(WCHAR)))
|
if (strncmpiW( name, mount->link.Buffer, mount->link.Length/sizeof(WCHAR)))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
if (spec->DeviceNameOffset)
|
if (spec->DeviceNameOffset)
|
||||||
{
|
{
|
||||||
const WCHAR *name = (const WCHAR *)((const char *)spec + spec->DeviceNameOffset);
|
const WCHAR *name = (const WCHAR *)((const char *)spec + spec->DeviceNameOffset);
|
||||||
if (spec->DeviceNameLength != mount->name.Length) return FALSE;
|
if (spec->DeviceNameLength != mount->name.Length) return FALSE;
|
||||||
if (memicmpW( name, mount->name.Buffer, mount->name.Length/sizeof(WCHAR)))
|
if (strncmpiW( name, mount->name.Buffer, mount->name.Length/sizeof(WCHAR)))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
if (spec->UniqueIdOffset)
|
if (spec->UniqueIdOffset)
|
||||||
|
|
Loading…
Reference in New Issue