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
0aefd857
Commit
0aefd857
authored
Jul 19, 2003
by
Jon Griffiths
Committed by
Alexandre Julliard
Jul 19, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vsnprintfW: %% should output a literal % sign.
parent
d7eea364
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
string.c
libs/unicode/string.c
+11
-2
No files found.
libs/unicode/string.c
View file @
0aefd857
...
...
@@ -160,7 +160,7 @@ long int strtolW( const WCHAR *nptr, WCHAR **endptr, int base )
noconv:
/* We must handle a special case here: the base is 0 or 16 and the
first two characters are '0' and 'x', but the rest are no
first two characters are '0' and 'x', but the rest are no
t
hexadecimal digits. This is no error case. We return 0 and
ENDPTR points to the `x`. */
if
(
endptr
!=
NULL
)
...
...
@@ -272,7 +272,7 @@ unsigned long int strtoulW( const WCHAR *nptr, WCHAR **endptr, int base )
noconv:
/* We must handle a special case here: the base is 0 or 16 and the
first two characters are '0' and 'x', but the rest are no
first two characters are '0' and 'x', but the rest are no
t
hexadecimal digits. This is no error case. We return 0 and
ENDPTR points to the `x`. */
if
(
endptr
!=
NULL
)
...
...
@@ -305,6 +305,15 @@ int vsnprintfW(WCHAR *str, size_t len, const WCHAR *format, va_list valist)
}
if
(
*
iter
==
'%'
)
{
if
(
iter
[
1
]
==
'%'
)
{
if
(
written
++
>=
len
)
return
-
1
;
*
str
++
=
'%'
;
/* "%%"->'%' */
iter
+=
2
;
continue
;
}
fmta
=
fmtbufa
;
*
fmta
++
=
*
iter
++
;
while
(
*
iter
==
'0'
||
...
...
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