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
5d4de2ac
Commit
5d4de2ac
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 vsn(w)printf_s_l.
parent
4c337fb4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
wcs.c
dlls/msvcrt/wcs.c
+2
-2
No files found.
dlls/msvcrt/wcs.c
View file @
5d4de2ac
...
...
@@ -1050,7 +1050,7 @@ int CDECL MSVCRT_vsnprintf_s_l( char *str, MSVCRT_size_t sizeOfBuffer,
if
(
ret
<
0
||
ret
==
len
)
{
if
(
count
!=
MSVCRT__TRUNCATE
&&
count
>
sizeOfBuffer
)
{
MSVCRT_
_invalid_parameter
(
NULL
,
NULL
,
NULL
,
0
,
0
);
MSVCRT_
INVALID_PMT
(
"str[sizeOfBuffer] is too small"
);
*
MSVCRT__errno
()
=
MSVCRT_ERANGE
;
memset
(
str
,
0
,
sizeOfBuffer
);
}
else
...
...
@@ -1188,7 +1188,7 @@ int CDECL MSVCRT_vsnwprintf_s_l( MSVCRT_wchar_t *str, MSVCRT_size_t sizeOfBuffer
if
(
ret
<
0
||
ret
==
len
)
{
if
(
count
!=
MSVCRT__TRUNCATE
&&
count
>
sizeOfBuffer
)
{
MSVCRT_
_invalid_parameter
(
NULL
,
NULL
,
NULL
,
0
,
0
);
MSVCRT_
INVALID_PMT
(
"str[sizeOfBuffer] is too small"
);
*
MSVCRT__errno
()
=
MSVCRT_ERANGE
;
memset
(
str
,
0
,
sizeOfBuffer
*
sizeof
(
MSVCRT_wchar_t
));
}
else
...
...
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