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
b6d331d6
Commit
b6d331d6
authored
Apr 14, 2005
by
Rein Klazes
Committed by
Alexandre Julliard
Apr 14, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix decoding printf format in case the field width specifier is a '*'.
parent
8acdd0ba
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
wcs.c
dlls/msvcrt/wcs.c
+4
-0
No files found.
dlls/msvcrt/wcs.c
View file @
b6d331d6
...
@@ -399,6 +399,7 @@ static int pf_vsnprintf( pf_output *out, const WCHAR *format, va_list valist )
...
@@ -399,6 +399,7 @@ static int pf_vsnprintf( pf_output *out, const WCHAR *format, va_list valist )
LPCWSTR
q
,
p
=
format
;
LPCWSTR
q
,
p
=
format
;
pf_flags
flags
;
pf_flags
flags
;
TRACE
(
"format is %s
\n
"
,
debugstr_w
(
format
));
while
(
*
p
)
while
(
*
p
)
{
{
q
=
strchrW
(
p
,
'%'
);
q
=
strchrW
(
p
,
'%'
);
...
@@ -455,7 +456,10 @@ static int pf_vsnprintf( pf_output *out, const WCHAR *format, va_list valist )
...
@@ -455,7 +456,10 @@ static int pf_vsnprintf( pf_output *out, const WCHAR *format, va_list valist )
/* deal with the field width specifier */
/* deal with the field width specifier */
flags
.
FieldLength
=
0
;
flags
.
FieldLength
=
0
;
if
(
*
p
==
'*'
)
if
(
*
p
==
'*'
)
{
flags
.
FieldLength
=
va_arg
(
valist
,
int
);
flags
.
FieldLength
=
va_arg
(
valist
,
int
);
p
++
;
}
else
while
(
isdigit
(
*
p
)
)
else
while
(
isdigit
(
*
p
)
)
{
{
flags
.
FieldLength
*=
10
;
flags
.
FieldLength
*=
10
;
...
...
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