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
3b5619a8
Commit
3b5619a8
authored
Feb 19, 2020
by
Akihiro Sagawa
Committed by
Alexandre Julliard
Feb 19, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Add wsprintfA %C conversion tests.
Signed-off-by:
Akihiro Sagawa
<
sagawa.aki@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
92014581
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
wsprintf.c
dlls/user32/tests/wsprintf.c
+5
-0
No files found.
dlls/user32/tests/wsprintf.c
View file @
3b5619a8
...
...
@@ -70,6 +70,9 @@ static void wsprintfATest(void)
{
fffeW
,
"%.2S"
,
"?"
,
1
},
{
wineW
,
"%.2S"
,
"??"
,
2
},
{
star
,
"%.1s"
,
partial
,
1
},
{
(
void
*
)
0x2606
,
"%2C"
,
star
,
2
},
{
(
void
*
)
0xfffd
,
"%C"
,
"?"
,
1
},
{
(
void
*
)
0xe199
,
"%2c"
,
"
\x99
"
,
2
},
};
CPINFO
cpinfo
;
unsigned
int
i
;
...
...
@@ -108,10 +111,12 @@ static void wsprintfATest(void)
memset
(
buf
,
0x11
,
sizeof
(
buf
));
rc
=
wsprintfA
(
buf
,
testcase
[
i
].
fmt
,
testcase
[
i
].
input
);
todo_wine_if
(
i
==
7
)
ok
(
rc
==
testcase
[
i
].
rc
,
"%u: expected %d, got %d
\n
"
,
i
,
testcase
[
i
].
rc
,
rc
);
todo_wine_if
(
i
==
7
||
i
==
8
||
i
==
9
)
ok
(
!
strcmp
(
buf
,
testcase
[
i
].
str
),
"%u: expected %s, got %s
\n
"
,
i
,
wine_dbgstr_a
(
testcase
[
i
].
str
),
wine_dbgstr_an
(
buf
,
rc
));
...
...
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