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
58140f73
Commit
58140f73
authored
Mar 16, 2019
by
Piotr Caban
Committed by
Alexandre Julliard
Mar 18, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Fix long limits in _atol_l.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
cd6516eb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
string.c
dlls/msvcrt/string.c
+4
-4
No files found.
dlls/msvcrt/string.c
View file @
58140f73
...
...
@@ -1094,11 +1094,11 @@ MSVCRT_long CDECL MSVCRT__atol_l(const char *str, MSVCRT__locale_t locale)
{
__int64
ret
=
MSVCRT_strtoi64_l
(
str
,
NULL
,
10
,
locale
);
if
(
ret
>
LONG_MAX
)
{
ret
=
LONG_MAX
;
if
(
ret
>
MSVCRT_
LONG_MAX
)
{
ret
=
MSVCRT_
LONG_MAX
;
*
MSVCRT__errno
()
=
MSVCRT_ERANGE
;
}
else
if
(
ret
<
LONG_MIN
)
{
ret
=
LONG_MIN
;
}
else
if
(
ret
<
MSVCRT_
LONG_MIN
)
{
ret
=
MSVCRT_
LONG_MIN
;
*
MSVCRT__errno
()
=
MSVCRT_ERANGE
;
}
return
ret
;
...
...
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