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
034c2cb3
Commit
034c2cb3
authored
Jun 14, 2011
by
Marcus Meissner
Committed by
Alexandre Julliard
Jun 14, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mscvrt: Do not shadow fmt (Coverity).
parent
7e1ccdef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
printf.h
dlls/msvcrt/printf.h
+3
-3
No files found.
dlls/msvcrt/printf.h
View file @
034c2cb3
...
...
@@ -533,7 +533,7 @@ int FUNC_NAME(pf_printf)(FUNC_NAME(puts_clbk) pf_puts, void *puts_ctx, const API
if
(
tmp
!=
buf
)
HeapFree
(
GetProcessHeap
(),
0
,
tmp
);
}
else
if
(
flags
.
Format
&&
strchr
(
"aeEfgG"
,
flags
.
Format
))
{
char
fmt
[
20
],
buf_a
[
32
],
*
tmp
=
buf_a
,
*
decimal_point
;
char
f
loat_f
mt
[
20
],
buf_a
[
32
],
*
tmp
=
buf_a
,
*
decimal_point
;
int
max_len
=
(
flags
.
FieldLength
>
flags
.
Precision
?
flags
.
FieldLength
:
flags
.
Precision
)
+
10
;
if
(
max_len
>
sizeof
(
buf_a
))
...
...
@@ -541,9 +541,9 @@ int FUNC_NAME(pf_printf)(FUNC_NAME(puts_clbk) pf_puts, void *puts_ctx, const API
if
(
!
tmp
)
return
-
1
;
FUNC_NAME
(
pf_rebuild_format_string
)(
fmt
,
&
flags
);
FUNC_NAME
(
pf_rebuild_format_string
)(
f
loat_f
mt
,
&
flags
);
sprintf
(
tmp
,
fmt
,
pf_args
(
args_ctx
,
pos
,
VT_R8
,
valist
).
get_double
);
sprintf
(
tmp
,
f
loat_f
mt
,
pf_args
(
args_ctx
,
pos
,
VT_R8
,
valist
).
get_double
);
if
(
toupper
(
flags
.
Format
)
==
'E'
||
toupper
(
flags
.
Format
)
==
'G'
)
FUNC_NAME
(
pf_fixup_exponent
)(
tmp
);
...
...
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