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
647c54e5
Commit
647c54e5
authored
Aug 03, 2020
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Fix wcsncpy() implementation now that length is unsigned.
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=49206
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
cff04b34
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
wcstring.c
dlls/ntdll/wcstring.c
+2
-2
No files found.
dlls/ntdll/wcstring.c
View file @
647c54e5
...
...
@@ -244,8 +244,8 @@ int __cdecl wcsncmp( LPCWSTR str1, LPCWSTR str2, size_t n )
LPWSTR
__cdecl
wcsncpy
(
LPWSTR
s1
,
LPCWSTR
s2
,
size_t
n
)
{
WCHAR
*
ret
=
s1
;
while
(
n
--
>
0
)
if
(
!
(
*
s1
++
=
*
s2
++
))
break
;
while
(
n
--
>
0
)
*
s1
++
=
0
;
for
(
;
n
;
n
--
)
if
(
!
(
*
s1
++
=
*
s2
++
))
break
;
for
(
;
n
;
n
--
)
*
s1
++
=
0
;
return
ret
;
}
...
...
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