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
b8691538
Commit
b8691538
authored
May 26, 2008
by
Jon Griffiths
Committed by
Alexandre Julliard
May 27, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Follow Vista behaviour in wcscpy_s.
parent
288a48fc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
10 deletions
+4
-10
wcs.c
dlls/msvcrt/wcs.c
+4
-10
No files found.
dlls/msvcrt/wcs.c
View file @
b8691538
...
...
@@ -979,27 +979,21 @@ INT CDECL MSVCRT_wcscpy_s( MSVCRT_wchar_t* wcDest, MSVCRT_size_t numElement, con
{
INT
size
=
0
;
if
(
!
wcDest
)
if
(
!
wcDest
||
!
numElement
)
return
MSVCRT_EINVAL
;
wcDest
[
0
]
=
0
;
if
(
!
wcSrc
)
{
wcDest
[
0
]
=
0
;
return
MSVCRT_EINVAL
;
}
if
(
numElement
==
0
)
{
wcDest
[
0
]
=
0
;
return
MSVCRT_ERANGE
;
}
size
=
strlenW
(
wcSrc
)
+
1
;
if
(
size
>
numElement
)
{
wcDest
[
0
]
=
0
;
return
MSVCRT_EINVAL
;
return
MSVCRT_ERANGE
;
}
if
(
size
>
numElement
)
...
...
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