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
1da9922a
Commit
1da9922a
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 string to number functions.
parent
14187ed2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
string.c
dlls/msvcrt/string.c
+5
-6
No files found.
dlls/msvcrt/string.c
View file @
1da9922a
...
@@ -206,8 +206,7 @@ double CDECL MSVCRT_strtod_l( const char *str, char **end, MSVCRT__locale_t loca
...
@@ -206,8 +206,7 @@ double CDECL MSVCRT_strtod_l( const char *str, char **end, MSVCRT__locale_t loca
double
ret
;
double
ret
;
BOOL
found_digit
=
FALSE
;
BOOL
found_digit
=
FALSE
;
if
(
!
str
)
{
if
(
!
MSVCRT_CHECK_PMT
(
str
!=
NULL
))
{
MSVCRT__invalid_parameter
(
NULL
,
NULL
,
NULL
,
0
,
0
);
*
MSVCRT__errno
()
=
MSVCRT_EINVAL
;
*
MSVCRT__errno
()
=
MSVCRT_EINVAL
;
return
0
;
return
0
;
}
}
...
@@ -529,8 +528,8 @@ __int64 CDECL MSVCRT_strtoi64_l(const char *nptr, char **endptr, int base, MSVCR
...
@@ -529,8 +528,8 @@ __int64 CDECL MSVCRT_strtoi64_l(const char *nptr, char **endptr, int base, MSVCR
TRACE
(
"(%s %p %d %p)
\n
"
,
nptr
,
endptr
,
base
,
locale
);
TRACE
(
"(%s %p %d %p)
\n
"
,
nptr
,
endptr
,
base
,
locale
);
if
(
!
nptr
||
base
<
0
||
base
>
36
||
base
==
1
)
{
if
(
!
MSVCRT_CHECK_PMT
(
nptr
!=
NULL
)
||
!
MSVCRT_CHECK_PMT
(
base
==
0
||
base
>=
2
)
||
MSVCRT__invalid_parameter
(
NULL
,
NULL
,
NULL
,
0
,
0
);
!
MSVCRT_CHECK_PMT
(
base
<=
36
))
{
return
0
;
return
0
;
}
}
...
@@ -609,8 +608,8 @@ unsigned __int64 CDECL MSVCRT_strtoui64_l(const char *nptr, char **endptr, int b
...
@@ -609,8 +608,8 @@ unsigned __int64 CDECL MSVCRT_strtoui64_l(const char *nptr, char **endptr, int b
TRACE
(
"(%s %p %d %p)
\n
"
,
nptr
,
endptr
,
base
,
locale
);
TRACE
(
"(%s %p %d %p)
\n
"
,
nptr
,
endptr
,
base
,
locale
);
if
(
!
nptr
||
base
<
0
||
base
>
36
||
base
==
1
)
{
if
(
!
MSVCRT_CHECK_PMT
(
nptr
!=
NULL
)
||
!
MSVCRT_CHECK_PMT
(
base
==
0
||
base
>=
2
)
||
MSVCRT__invalid_parameter
(
NULL
,
NULL
,
NULL
,
0
,
0
);
!
MSVCRT_CHECK_PMT
(
base
<=
36
))
{
return
0
;
return
0
;
}
}
...
...
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