mountmgr: Use the ntdll Unicode string functions instead of wine/unicode.h.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2021-11-30 12:53:56 +01:00
parent 39336fd02d
commit 5554c847e1
1 changed files with 4 additions and 5 deletions

View File

@ -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;
}