From 38b1a1afcaa69b3eb389b6209080f69f2a27a43c Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Tue, 7 May 2019 11:31:21 -0500 Subject: [PATCH] mountmgr.sys: Use strncmpiW instead of memicmpW for strings without embedded nulls. Signed-off-by: Alexandre Julliard --- dlls/mountmgr.sys/mountmgr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/mountmgr.sys/mountmgr.c b/dlls/mountmgr.sys/mountmgr.c index b792be4bea0..2f43a227dc4 100644 --- a/dlls/mountmgr.sys/mountmgr.c +++ b/dlls/mountmgr.sys/mountmgr.c @@ -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); 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; } if (spec->DeviceNameOffset) { const WCHAR *name = (const WCHAR *)((const char *)spec + spec->DeviceNameOffset); 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; } if (spec->UniqueIdOffset)