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
990e537a
Commit
990e537a
authored
Oct 27, 2005
by
Mike McCormack
Committed by
Alexandre Julliard
Oct 27, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Missing and zero precision specifiers are different.
parent
3c2bda8f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
wcs.c
dlls/msvcrt/wcs.c
+8
-6
No files found.
dlls/msvcrt/wcs.c
View file @
990e537a
...
...
@@ -194,7 +194,7 @@ typedef struct pf_output_t
typedef
struct
pf_flags_t
{
char
Sign
,
LeftAlign
,
Alternate
,
PadZero
;
char
FieldLength
,
Precision
;
int
FieldLength
,
Precision
;
char
IntegerLength
,
IntegerDouble
;
char
WideString
;
char
Format
;
...
...
@@ -309,8 +309,8 @@ static inline int pf_output_format_W( pf_output *out, LPCWSTR str,
if
(
len
<
0
)
len
=
strlenW
(
str
);
if
(
flags
->
Precision
&&
flags
->
Precision
<
len
)
len
=
flags
->
Precision
;
if
(
flags
->
Precision
>=
0
&&
flags
->
Precision
<
len
)
len
=
flags
->
Precision
;
r
=
pf_fill
(
out
,
len
,
flags
,
1
);
...
...
@@ -331,8 +331,8 @@ static inline int pf_output_format_A( pf_output *out, LPCSTR str,
if
(
len
<
0
)
len
=
strlen
(
str
);
if
(
flags
->
Precision
&&
flags
->
Precision
<
len
)
len
=
flags
->
Precision
;
if
(
flags
->
Precision
>=
0
&&
flags
->
Precision
<
len
)
len
=
flags
->
Precision
;
r
=
pf_fill
(
out
,
len
,
flags
,
1
);
...
...
@@ -379,7 +379,7 @@ static void pf_rebuild_format_string( char *p, pf_flags *flags )
sprintf
(
p
,
"%d"
,
flags
->
FieldLength
);
p
+=
strlen
(
p
);
}
if
(
flags
->
Precision
)
if
(
flags
->
Precision
>=
0
)
{
sprintf
(
p
,
".%d"
,
flags
->
Precision
);
p
+=
strlen
(
p
);
...
...
@@ -467,8 +467,10 @@ static int pf_vsnprintf( pf_output *out, const WCHAR *format, va_list valist )
}
/* deal with precision */
flags
.
Precision
=
-
1
;
if
(
*
p
==
'.'
)
{
flags
.
Precision
=
0
;
p
++
;
if
(
*
p
==
'*'
)
{
...
...
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