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
3e78cca5
Commit
3e78cca5
authored
Sep 04, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt/tests: Fix the %n format test for Vista.
parent
525e30e6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
printf.c
dlls/msvcrt/tests/printf.c
+12
-3
No files found.
dlls/msvcrt/tests/printf.c
View file @
3e78cca5
...
...
@@ -390,9 +390,18 @@ static void test_sprintf( void )
format
=
"asdf%n"
;
x
=
0
;
r
=
sprintf
(
buffer
,
format
,
&
x
);
ok
(
x
==
4
,
"should write to x: %d
\n
"
,
x
);
ok
(
!
strcmp
(
buffer
,
"asdf"
),
"failed
\n
"
);
ok
(
r
==
4
,
"return count wrong: %d
\n
"
,
r
);
if
(
r
==
-
1
)
{
/* %n format is disabled by default on vista */
/* FIXME: should test with _set_printf_count_output */
ok
(
x
==
0
,
"should not write to x: %d
\n
"
,
x
);
}
else
{
ok
(
x
==
4
,
"should write to x: %d
\n
"
,
x
);
ok
(
!
strcmp
(
buffer
,
"asdf"
),
"failed
\n
"
);
ok
(
r
==
4
,
"return count wrong: %d
\n
"
,
r
);
}
format
=
"%-1d"
;
r
=
sprintf
(
buffer
,
format
,
2
);
...
...
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