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
8e58cbd8
Commit
8e58cbd8
authored
Apr 27, 2011
by
Piotr Caban
Committed by
Alexandre Julliard
Apr 27, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Use pf_integer_conv when displaying pointers.
parent
0f9f0a16
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
printf.h
dlls/msvcrt/printf.h
+7
-6
No files found.
dlls/msvcrt/printf.h
View file @
8e58cbd8
...
...
@@ -478,13 +478,14 @@ int FUNC_NAME(pf_printf)(FUNC_NAME(puts_clbk) pf_puts, void *puts_ctx, const API
i
=
FUNC_NAME
(
pf_handle_string
)(
pf_puts
,
puts_ctx
,
&
ch
,
1
,
&
flags
,
locale
);
}
else
if
(
flags
.
Format
==
'p'
)
{
void
*
ptr
=
pf_args
(
args_ctx
,
pos
,
VT_PTR
,
&
valist
).
get_ptr
;
flags
.
Format
=
'X'
;
flags
.
PadZero
=
'0'
;
i
=
flags
.
Precision
;
flags
.
Precision
=
2
*
sizeof
(
void
*
);
FUNC_NAME
(
pf_integer_conv
)(
buf
,
sizeof
(
buf
),
&
flags
,
pf_args
(
args_ctx
,
pos
,
VT_INT
,
&
valist
).
get_int
);
flags
.
PadZero
=
0
;
if
(
flags
.
Alternate
)
sprintf
(
buf
,
"0X%0*lX"
,
2
*
(
int
)
sizeof
(
ptr
),
(
ULONG_PTR
)
ptr
);
else
sprintf
(
buf
,
"%0*lX"
,
2
*
(
int
)
sizeof
(
ptr
),
(
ULONG_PTR
)
ptr
);
flags
.
Precision
=
i
;
i
=
FUNC_NAME
(
pf_output_format_str
)(
pf_puts
,
puts_ctx
,
buf
,
-
1
,
&
flags
,
locale
);
}
else
if
(
flags
.
Format
==
'n'
)
{
...
...
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