mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-08 21:07:45 +00:00
ntdll: Use wcscspn() instead of strcspnW().
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
e003b9884e
commit
23bf63f9eb
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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 )
|
||||
|
|
Loading…
Reference in a new issue