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
14187ed2
Commit
14187ed2
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 for strtok_s.
parent
8583bd31
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
string.c
dlls/msvcrt/string.c
+2
-2
No files found.
dlls/msvcrt/string.c
View file @
14187ed2
...
@@ -152,8 +152,8 @@ char * CDECL MSVCRT_strtok( char *str, const char *delim )
...
@@ -152,8 +152,8 @@ char * CDECL MSVCRT_strtok( char *str, const char *delim )
*/
*/
char
*
CDECL
MSVCRT_strtok_s
(
char
*
str
,
const
char
*
delim
,
char
**
ctx
)
char
*
CDECL
MSVCRT_strtok_s
(
char
*
str
,
const
char
*
delim
,
char
**
ctx
)
{
{
if
(
!
delim
||
!
ctx
||
(
!
str
&&
!*
ctx
))
{
if
(
!
MSVCRT_CHECK_PMT
(
delim
!=
NULL
)
||
!
MSVCRT_CHECK_PMT
(
ctx
!=
NULL
)
||
MSVCRT__invalid_parameter
(
NULL
,
NULL
,
NULL
,
0
,
0
);
!
MSVCRT_CHECK_PMT
(
str
!=
NULL
||
*
ctx
!=
NULL
))
{
*
MSVCRT__errno
()
=
MSVCRT_EINVAL
;
*
MSVCRT__errno
()
=
MSVCRT_EINVAL
;
return
NULL
;
return
NULL
;
}
}
...
...
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