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
0010ee02
Commit
0010ee02
authored
Mar 09, 2013
by
Akihiro Sagawa
Committed by
Alexandre Julliard
Mar 11, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Fix incorrect casts in _wcstoi64_l and _wcstoui64_l.
parent
564b6824
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
string.c
dlls/msvcrt/tests/string.c
+4
-4
wcs.c
dlls/msvcrt/wcs.c
+3
-3
No files found.
dlls/msvcrt/tests/string.c
View file @
0010ee02
...
...
@@ -2491,8 +2491,8 @@ static void test__wcstoi64(void)
res
=
p_wcstoi64
(
digit
,
NULL
,
10
);
ok
(
res
==
9
,
"res != 9
\n
"
);
res
=
p_wcstoi64
(
stock
,
&
endpos
,
10
);
todo_wine
ok
(
res
==
0
,
"res != 0
\n
"
);
todo_wine
ok
(
endpos
==
stock
,
"Incorrect endpos (%p-%p)
\n
"
,
stock
,
endpos
);
ok
(
res
==
0
,
"res != 0
\n
"
);
ok
(
endpos
==
stock
,
"Incorrect endpos (%p-%p)
\n
"
,
stock
,
endpos
);
res
=
p_wcstoi64
(
tamil
,
&
endpos
,
10
);
ok
(
res
==
0
,
"res != 0
\n
"
);
ok
(
endpos
==
tamil
,
"Incorrect endpos (%p-%p)
\n
"
,
tamil
,
endpos
);
...
...
@@ -2506,8 +2506,8 @@ static void test__wcstoi64(void)
ures
=
p_wcstoui64
(
digit
,
NULL
,
10
);
ok
(
ures
==
9
,
"ures != 9
\n
"
);
ures
=
p_wcstoui64
(
stock
,
&
endpos
,
10
);
todo_wine
ok
(
ures
==
0
,
"ures != 0
\n
"
);
todo_wine
ok
(
endpos
==
stock
,
"Incorrect endpos (%p-%p)
\n
"
,
stock
,
endpos
);
ok
(
ures
==
0
,
"ures != 0
\n
"
);
ok
(
endpos
==
stock
,
"Incorrect endpos (%p-%p)
\n
"
,
stock
,
endpos
);
ures
=
p_wcstoui64
(
tamil
,
&
endpos
,
10
);
ok
(
ures
==
0
,
"ures != 0
\n
"
);
ok
(
endpos
==
tamil
,
"Incorrect endpos (%p-%p)
\n
"
,
tamil
,
endpos
);
...
...
dlls/msvcrt/wcs.c
View file @
0010ee02
...
...
@@ -1395,7 +1395,7 @@ __int64 CDECL MSVCRT__wcstoi64_l(const MSVCRT_wchar_t *nptr,
}
while
(
*
nptr
)
{
char
cur
=
tolowerW
(
*
nptr
);
MSVCRT_wchar_t
cur
=
tolowerW
(
*
nptr
);
int
v
;
if
(
isdigitW
(
cur
))
{
...
...
@@ -1493,10 +1493,10 @@ unsigned __int64 CDECL MSVCRT__wcstoui64_l(const MSVCRT_wchar_t *nptr,
}
while
(
*
nptr
)
{
char
cur
=
tolowerW
(
*
nptr
);
MSVCRT_wchar_t
cur
=
tolowerW
(
*
nptr
);
int
v
;
if
(
isdigit
(
cur
))
{
if
(
isdigit
W
(
cur
))
{
if
(
cur
>=
'0'
+
base
)
break
;
v
=
*
nptr
-
'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