Commit 0d1b7737 authored by Alexandre Julliard's avatar Alexandre Julliard

ntdll: Use wcsspn() instead of strspnW().

parent 23bf63f9
......@@ -130,7 +130,7 @@ static enum loadorder parse_load_order( const WCHAR *order )
while (*order)
{
order += strspnW( order, separatorsW );
order += wcsspn( order, separatorsW );
switch(*order)
{
case 'N': /* native */
......@@ -207,7 +207,7 @@ static void add_load_order_set( WCHAR *entry )
while (*entry)
{
entry += strspnW( entry, separatorsW );
entry += wcsspn( entry, separatorsW );
end = entry + wcscspn( entry, separatorsW );
if (*end) *end++ = 0;
if (*entry)
......
......@@ -310,6 +310,7 @@ int WINAPIV NTDLL_swprintf( WCHAR *str, const WCHAR *format, ... );
#define wcstoul(s,e,b) NTDLL_wcstoul(s,e,b)
#define wcslen(s) NTDLL_wcslen(s)
#define wcscspn(s,r) NTDLL_wcscspn(s,r)
#define wcsspn(s,a) NTDLL_wcsspn(s,a)
/* 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 )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment