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
acbb7b81
Commit
acbb7b81
authored
Apr 30, 2011
by
Nicolas Le Cam
Committed by
Alexandre Julliard
May 02, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt/tests: Avoid size_t in traces.
parent
401961f8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
string.c
dlls/msvcrt/tests/string.c
+8
-8
No files found.
dlls/msvcrt/tests/string.c
View file @
acbb7b81
...
...
@@ -1332,31 +1332,31 @@ static void test_mbstowcs(void)
err
=
pmbstowcs_s
(
&
ret
,
wOut
,
6
,
mSimple
,
_TRUNCATE
);
ok
(
err
==
0
,
"err = %d
\n
"
,
err
);
ok
(
ret
==
5
,
"
ret = %d
\n
"
,
(
int
)
ret
);
ok
(
ret
==
5
,
"
mbstowcs_s did not return 5
\n
"
);
ok
(
!
memcmp
(
wOut
,
wSimple
,
sizeof
(
wSimple
)),
"wOut = %s
\n
"
,
wine_dbgstr_w
(
wOut
));
err
=
pmbstowcs_s
(
&
ret
,
wOut
,
6
,
mHiragana
,
_TRUNCATE
);
ok
(
err
==
0
,
"err = %d
\n
"
,
err
);
ok
(
ret
==
3
,
"
ret = %d
\n
"
,
(
int
)
ret
);
ok
(
ret
==
3
,
"
mbstowcs_s did not return 3
\n
"
);
ok
(
!
memcmp
(
wOut
,
wHiragana
,
sizeof
(
wHiragana
)),
"wOut = %s
\n
"
,
wine_dbgstr_w
(
wOut
));
err
=
pmbstowcs_s
(
&
ret
,
NULL
,
0
,
mHiragana
,
1
);
ok
(
err
==
0
,
"err = %d
\n
"
,
err
);
ok
(
ret
==
3
,
"
ret = %d
\n
"
,
(
int
)
ret
);
ok
(
ret
==
3
,
"
mbstowcs_s did not return 3
\n
"
);
err
=
pwcstombs_s
(
&
ret
,
mOut
,
6
,
wSimple
,
_TRUNCATE
);
ok
(
err
==
0
,
"err = %d
\n
"
,
err
);
ok
(
ret
==
5
,
"
ret = %d
\n
"
,
(
int
)
ret
);
ok
(
ret
==
5
,
"
wcstombs_s did not return 5
\n
"
);
ok
(
!
memcmp
(
mOut
,
mSimple
,
sizeof
(
mSimple
)),
"mOut = %s
\n
"
,
mOut
);
err
=
pwcstombs_s
(
&
ret
,
mOut
,
6
,
wHiragana
,
_TRUNCATE
);
ok
(
err
==
0
,
"err = %d
\n
"
,
err
);
ok
(
ret
==
5
,
"
ret = %d
\n
"
,
(
int
)
ret
);
ok
(
ret
==
5
,
"
wcstombs_s did not return 5
\n
"
);
ok
(
!
memcmp
(
mOut
,
mHiragana
,
sizeof
(
mHiragana
)),
"mOut = %s
\n
"
,
mOut
);
err
=
pwcstombs_s
(
&
ret
,
NULL
,
0
,
wHiragana
,
1
);
ok
(
err
==
0
,
"err = %d
\n
"
,
err
);
ok
(
ret
==
5
,
"
ret = %d
\n
"
,
(
int
)
ret
);
ok
(
ret
==
5
,
"
wcstombs_s did not return 5
\n
"
);
if
(
!
pwcsrtombs
)
{
win_skip
(
"wcsrtombs not available
\n
"
);
...
...
@@ -1366,14 +1366,14 @@ static void test_mbstowcs(void)
pwstr
=
wSimple
;
err
=
-
3
;
ret
=
pwcsrtombs
(
mOut
,
&
pwstr
,
4
,
&
err
);
ok
(
ret
==
4
,
"
ret = %d
\n
"
,
ret
);
ok
(
ret
==
4
,
"
wcsrtombs did not return 4
\n
"
);
ok
(
err
==
0
,
"err = %d
\n
"
,
err
);
ok
(
pwstr
==
wSimple
+
4
,
"pwstr = %p (wszSimple = %p)
\n
"
,
pwstr
,
wSimple
);
ok
(
!
memcmp
(
mOut
,
mSimple
,
ret
),
"mOut = %s
\n
"
,
mOut
);
pwstr
=
wSimple
;
ret
=
pwcsrtombs
(
mOut
,
&
pwstr
,
5
,
NULL
);
ok
(
ret
==
4
,
"
ret = %d
\n
"
,
ret
);
ok
(
ret
==
4
,
"
wcsrtombs did not return 4
\n
"
);
ok
(
pwstr
==
NULL
,
"pwstr != NULL
\n
"
);
ok
(
!
memcmp
(
mOut
,
mSimple
,
sizeof
(
mSimple
)),
"mOut = %s
\n
"
,
mOut
);
}
...
...
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