Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
0d1b7737
Commit
0d1b7737
authored
Mar 31, 2020
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Use wcsspn() instead of strspnW().
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
23bf63f9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
loadorder.c
dlls/ntdll/loadorder.c
+2
-2
ntdll_misc.h
dlls/ntdll/ntdll_misc.h
+1
-0
No files found.
dlls/ntdll/loadorder.c
View file @
0d1b7737
...
...
@@ -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
)
...
...
dlls/ntdll/ntdll_misc.h
View file @
0d1b7737
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment