From 5554c847e1442ce41838c02a994cd06bda21e2d0 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Tue, 30 Nov 2021 12:53:56 +0100 Subject: [PATCH] mountmgr: Use the ntdll Unicode string functions instead of wine/unicode.h. Signed-off-by: Alexandre Julliard --- dlls/mountmgr.sys/cred.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/dlls/mountmgr.sys/cred.c b/dlls/mountmgr.sys/cred.c index 071cb53236d..9fb9e433881 100644 --- a/dlls/mountmgr.sys/cred.c +++ b/dlls/mountmgr.sys/cred.c @@ -40,7 +40,6 @@ #include "mountmgr.h" #include "unixlib.h" -#include "wine/unicode.h" #include "wine/debug.h" WINE_DEFAULT_DEBUG_CHANNEL(mountmgr); @@ -167,7 +166,7 @@ static SecKeychainItemRef find_credential( const WCHAR *name ) CFRelease( search ); return NULL; } - if (strcmpiW( itemname, name )) + if (wcsicmp( itemname, name )) { CFRelease( item ); free( itemname ); @@ -466,9 +465,9 @@ static BOOL match_credential( void *data, UInt32 data_len, const WCHAR *filter ) TRACE( "comparing filter %s to target name %s\n", debugstr_w(filter), debugstr_w(targetname) ); - p = strchrW( filter, '*' ); - if (*p && !p[1]) ret = !strncmpiW( filter, targetname, p - filter ); - else ret = !strcmpiW( filter, targetname ); + p = wcschr( filter, '*' ); + if (*p && !p[1]) ret = !wcsnicmp( filter, targetname, p - filter ); + else ret = !wcsicmp( filter, targetname ); free( targetname ); return ret; }