Alexandre Julliard : mountmgr: Use the ntdll Unicode string functions instead of wine/unicode.h.
Module: wine Branch: master Commit: 5554c847e1442ce41838c02a994cd06bda21e2d0 URL: https://source.winehq.org/git/wine.git/?a=commit;h=5554c847e1442ce41838c02a9... Author: Alexandre Julliard <julliard(a)winehq.org> Date: Tue Nov 30 12:53:56 2021 +0100 mountmgr: Use the ntdll Unicode string functions instead of wine/unicode.h. Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- 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; }
participants (1)
-
Alexandre Julliard