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
4c337fb4
Commit
4c337fb4
authored
Oct 29, 2010
by
Eric Pouech
Committed by
Alexandre Julliard
Nov 01, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Use parameter checking macros in wcstombs_s_l.
parent
16c89a54
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
wcs.c
dlls/msvcrt/wcs.c
+2
-3
No files found.
dlls/msvcrt/wcs.c
View file @
4c337fb4
...
...
@@ -298,8 +298,7 @@ MSVCRT_size_t CDECL MSVCRT__wcstombs_s_l(MSVCRT_size_t *ret, char *mbstr,
return
0
;
}
if
(
!
wcstr
||
!
mbstr
)
{
MSVCRT__invalid_parameter
(
NULL
,
NULL
,
NULL
,
0
,
0
);
if
(
!
MSVCRT_CHECK_PMT
(
wcstr
!=
NULL
)
||
!
MSVCRT_CHECK_PMT
(
mbstr
!=
NULL
))
{
if
(
mbstr
&&
size
)
mbstr
[
0
]
=
'\0'
;
*
MSVCRT__errno
()
=
MSVCRT_EINVAL
;
...
...
@@ -317,7 +316,7 @@ MSVCRT_size_t CDECL MSVCRT__wcstombs_s_l(MSVCRT_size_t *ret, char *mbstr,
else
if
(
conv
==
size
&&
(
count
==
MSVCRT__TRUNCATE
||
mbstr
[
conv
-
1
]
==
'\0'
))
mbstr
[
conv
-
1
]
=
'\0'
;
else
{
MSVCRT_
_invalid_parameter
(
NULL
,
NULL
,
NULL
,
0
,
0
);
MSVCRT_
INVALID_PMT
(
"mbstr[size] is too small"
);
if
(
size
)
mbstr
[
0
]
=
'\0'
;
*
MSVCRT__errno
()
=
MSVCRT_ERANGE
;
...
...
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