ntdll: Use wcscspn() instead of strcspnW().

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2020-03-31 11:52:07 +02:00
parent e003b9884e
commit 23bf63f9eb
2 changed files with 3 additions and 2 deletions

View file

@ -144,7 +144,7 @@ static enum loadorder parse_load_order( const WCHAR *order )
else if (ret == LO_NATIVE) return LO_NATIVE_BUILTIN;
break;
}
order += strcspnW( order, separatorsW );
order += wcscspn( order, separatorsW );
}
return ret;
}
@ -208,7 +208,7 @@ static void add_load_order_set( WCHAR *entry )
while (*entry)
{
entry += strspnW( entry, separatorsW );
end = entry + strcspnW( entry, separatorsW );
end = entry + wcscspn( entry, separatorsW );
if (*end) *end++ = 0;
if (*entry)
{

View file

@ -309,6 +309,7 @@ int WINAPIV NTDLL_swprintf( WCHAR *str, const WCHAR *format, ... );
#define wcsrchr(s,c) NTDLL_wcsrchr(s,c)
#define wcstoul(s,e,b) NTDLL_wcstoul(s,e,b)
#define wcslen(s) NTDLL_wcslen(s)
#define wcscspn(s,r) NTDLL_wcscspn(s,r)
/* convert from straight ASCII to Unicode without depending on the current codepage */
static inline void ascii_to_unicode( WCHAR *dst, const char *src, size_t len )