Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
a524ab50
Commit
a524ab50
authored
Jan 29, 2022
by
Zebediah Figura
Committed by
Alexandre Julliard
Jan 31, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Implement wcsnlen().
Signed-off-by:
Zebediah Figura
<
zfigura@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ad5b6be1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
ntdll.spec
dlls/ntdll/ntdll.spec
+1
-0
wcstring.c
dlls/ntdll/wcstring.c
+11
-0
No files found.
dlls/ntdll/ntdll.spec
View file @
a524ab50
...
...
@@ -1609,6 +1609,7 @@
@ cdecl wcsncat(wstr wstr long)
@ cdecl wcsncmp(wstr wstr long)
@ cdecl wcsncpy(ptr wstr long)
@ cdecl wcsnlen(ptr long)
@ cdecl wcspbrk(wstr wstr)
@ cdecl wcsrchr(wstr long)
@ cdecl wcsspn(wstr wstr)
...
...
dlls/ntdll/wcstring.c
View file @
a524ab50
...
...
@@ -252,6 +252,17 @@ LPWSTR __cdecl wcsncpy( LPWSTR s1, LPCWSTR s2, size_t n )
/*********************************************************************
* wcsnlen (NTDLL.@)
*/
size_t
__cdecl
wcsnlen
(
const
WCHAR
*
str
,
size_t
len
)
{
const
WCHAR
*
s
=
str
;
for
(
s
=
str
;
len
&&
*
s
;
s
++
,
len
--
)
;
return
s
-
str
;
}
/*********************************************************************
* wcspbrk (NTDLL.@)
*/
LPWSTR
__cdecl
wcspbrk
(
LPCWSTR
str
,
LPCWSTR
accept
)
...
...
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