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
3a195139
Commit
3a195139
authored
Apr 06, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Fix scanf to correctly parse pointers on 64-bit.
parent
4b9bba16
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
scanf.h
dlls/msvcrt/scanf.h
+3
-1
No files found.
dlls/msvcrt/scanf.h
View file @
3a195139
...
...
@@ -151,6 +151,8 @@ _FUNCTION_ {
switch
(
*
format
)
{
case
'p'
:
case
'P'
:
/* pointer. */
if
(
sizeof
(
void
*
)
==
sizeof
(
LONGLONG
))
I64_prefix
=
1
;
/* fall through */
case
'x'
:
case
'X'
:
/* hexadecimal integer. */
base
=
16
;
...
...
@@ -224,7 +226,7 @@ _FUNCTION_ {
if
(
!
suppress
)
{
#define _SET_NUMBER_(type) *va_arg(ap, type*) = negative ? -cur : cur
if
(
I64_prefix
)
_SET_NUMBER_
(
LONGLONG
);
else
if
(
l_prefix
)
_SET_NUMBER_
(
long
int
);
else
if
(
l_prefix
)
_SET_NUMBER_
(
LONG
);
else
if
(
h_prefix
)
_SET_NUMBER_
(
short
int
);
else
_SET_NUMBER_
(
int
);
}
...
...
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