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
8583bd31
Commit
8583bd31
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 validation macros for mcstowcs_s_l.
parent
c10a6d74
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
mbcs.c
dlls/msvcrt/mbcs.c
+2
-3
No files found.
dlls/msvcrt/mbcs.c
View file @
8583bd31
...
...
@@ -1824,8 +1824,7 @@ int CDECL MSVCRT__mbstowcs_s_l(MSVCRT_size_t *ret, MSVCRT_wchar_t *wcstr,
return
0
;
}
if
(
!
mbstr
||
!
wcstr
)
{
MSVCRT__invalid_parameter
(
NULL
,
NULL
,
NULL
,
0
,
0
);
if
(
!
MSVCRT_CHECK_PMT
(
mbstr
!=
NULL
)
||
!
MSVCRT_CHECK_PMT
(
wcstr
!=
NULL
))
{
if
(
wcstr
&&
size
)
wcstr
[
0
]
=
'\0'
;
*
MSVCRT__errno
()
=
MSVCRT_EINVAL
;
...
...
@@ -1843,7 +1842,7 @@ int CDECL MSVCRT__mbstowcs_s_l(MSVCRT_size_t *ret, MSVCRT_wchar_t *wcstr,
else
if
(
conv
==
size
&&
(
count
==
MSVCRT__TRUNCATE
||
wcstr
[
conv
-
1
]
==
'\0'
))
wcstr
[
conv
-
1
]
=
'\0'
;
else
{
MSVCRT_
_invalid_parameter
(
NULL
,
NULL
,
NULL
,
0
,
0
);
MSVCRT_
INVALID_PMT
(
"wcstr[size] is too small"
);
if
(
size
)
wcstr
[
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