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
5def7dd3
Commit
5def7dd3
authored
Mar 05, 2005
by
Mike McCormack
Committed by
Alexandre Julliard
Mar 05, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Handle %ls in sprintf.
parent
bf6d5fc6
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
printf.c
dlls/msvcrt/tests/printf.c
+10
-0
wcs.c
dlls/msvcrt/wcs.c
+1
-1
No files found.
dlls/msvcrt/tests/printf.c
View file @
5def7dd3
...
@@ -131,6 +131,16 @@ static void test_sprintf( void )
...
@@ -131,6 +131,16 @@ static void test_sprintf( void )
ok
(
!
strcmp
(
buffer
,
"-s"
),
"failed
\n
"
);
ok
(
!
strcmp
(
buffer
,
"-s"
),
"failed
\n
"
);
ok
(
r
==
2
,
"return count wrong
\n
"
);
ok
(
r
==
2
,
"return count wrong
\n
"
);
format
=
"%ls"
;
r
=
sprintf
(
buffer
,
format
,
wide
);
ok
(
!
strcmp
(
buffer
,
"wide"
),
"failed
\n
"
);
ok
(
r
==
4
,
"return count wrong
\n
"
);
format
=
"%Ls"
;
r
=
sprintf
(
buffer
,
format
,
"not wide"
);
ok
(
!
strcmp
(
buffer
,
"not wide"
),
"failed
\n
"
);
ok
(
r
==
8
,
"return count wrong
\n
"
);
format
=
"%b"
;
format
=
"%b"
;
r
=
sprintf
(
buffer
,
format
);
r
=
sprintf
(
buffer
,
format
);
ok
(
!
strcmp
(
buffer
,
"b"
),
"failed
\n
"
);
ok
(
!
strcmp
(
buffer
,
"b"
),
"failed
\n
"
);
...
...
dlls/msvcrt/wcs.c
View file @
5def7dd3
...
@@ -501,7 +501,7 @@ static int pf_vsnprintf( pf_output *out, const WCHAR *format, va_list valist )
...
@@ -501,7 +501,7 @@ static int pf_vsnprintf( pf_output *out, const WCHAR *format, va_list valist )
r
=
0
;
r
=
0
;
/* output a unicode string */
/* output a unicode string */
if
(
(
flags
.
Format
==
's'
&&
flags
.
WideString
)
||
if
(
(
flags
.
Format
==
's'
&&
(
flags
.
WideString
||
flags
.
IntegerLength
==
'l'
)
)
||
(
!
out
->
unicode
&&
flags
.
Format
==
'S'
)
||
(
!
out
->
unicode
&&
flags
.
Format
==
'S'
)
||
(
out
->
unicode
&&
flags
.
Format
==
's'
)
)
(
out
->
unicode
&&
flags
.
Format
==
's'
)
)
{
{
...
...
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