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
34f24871
Commit
34f24871
authored
Jan 02, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Fix formatting of pointers in printf.
parent
9f365e77
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
wcs.c
dlls/msvcrt/wcs.c
+4
-3
No files found.
dlls/msvcrt/wcs.c
View file @
34f24871
...
...
@@ -678,13 +678,14 @@ static int pf_vsnprintf( pf_output *out, const WCHAR *format, va_list valist )
/* output a pointer */
else
if
(
flags
.
Format
==
'p'
)
{
char
pointer
[
11
];
char
pointer
[
32
];
void
*
ptr
=
va_arg
(
valist
,
void
*
);
flags
.
PadZero
=
0
;
if
(
flags
.
Alternate
)
sprintf
(
pointer
,
"0X%0
8lX"
,
va_arg
(
valist
,
long
)
);
sprintf
(
pointer
,
"0X%0
*lX"
,
2
*
sizeof
(
ptr
),
(
ULONG_PTR
)
ptr
);
else
sprintf
(
pointer
,
"%0
8lX"
,
va_arg
(
valist
,
long
)
);
sprintf
(
pointer
,
"%0
*lX"
,
2
*
sizeof
(
ptr
),
(
ULONG_PTR
)
ptr
);
r
=
pf_output_format_A
(
out
,
pointer
,
-
1
,
&
flags
);
}
...
...
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