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
d999fd0d
Commit
d999fd0d
authored
Jan 06, 2015
by
Hugh McMaster
Committed by
Alexandre Julliard
Jan 07, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt/tests: Add more tests for _vsnwprintf.
parent
90fd0285
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
printf.c
dlls/msvcrt/tests/printf.c
+6
-0
No files found.
dlls/msvcrt/tests/printf.c
View file @
d999fd0d
...
...
@@ -1127,6 +1127,12 @@ static void test_vsnwprintf(void)
ok
(
ret
==
11
,
"got %d expected 11
\n
"
,
ret
);
WideCharToMultiByte
(
CP_ACP
,
0
,
str
,
-
1
,
buf
,
sizeof
(
buf
),
NULL
,
NULL
);
ok
(
!
strcmp
(
buf
,
"onetwothree"
),
"got %s expected 'onetwothree'
\n
"
,
buf
);
ret
=
_vsnwprintf_wrapper
(
str
,
0
,
format
,
one
,
two
,
three
);
ok
(
ret
==
-
1
,
"got %d, expected -1
\n
"
,
ret
);
ret
=
_vsnwprintf_wrapper
(
NULL
,
0
,
format
,
one
,
two
,
three
);
ok
(
ret
==
11
||
broken
(
ret
==
-
1
/* Win2k */
),
"got %d, expected 11
\n
"
,
ret
);
}
static
int
__cdecl
vswprintf_wrapper
(
wchar_t
*
str
,
const
wchar_t
*
format
,
...)
...
...
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