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
7a175201
Commit
7a175201
authored
Aug 29, 2010
by
Alexandre Goujon
Committed by
Alexandre Julliard
Aug 30, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: string Avoid size_t in ok().
parent
9738f40e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
string.c
dlls/msvcrt/tests/string.c
+7
-7
No files found.
dlls/msvcrt/tests/string.c
View file @
7a175201
...
...
@@ -1185,22 +1185,22 @@ static void test_mbstowcs(void)
mOut
[
4
]
=
'!'
;
mOut
[
5
]
=
'\0'
;
ret
=
mbstowcs
(
NULL
,
mSimple
,
0
);
ok
(
ret
==
4
,
"
ret = %d
\n
"
,
ret
);
ok
(
ret
==
4
,
"
mbstowcs did not return 4
\n
"
);
ret
=
mbstowcs
(
wOut
,
mSimple
,
4
);
ok
(
ret
==
4
,
"
ret = %d
\n
"
,
ret
);
ok
(
ret
==
4
,
"
mbstowcs did not return 4
\n
"
);
ok
(
!
memcmp
(
wOut
,
wSimple
,
4
*
sizeof
(
wchar_t
)),
"wOut = %s
\n
"
,
wine_dbgstr_w
(
wOut
));
ok
(
wOut
[
4
]
==
'!'
,
"wOut[4] !=
\'
!
\'\n
"
);
ret
=
wcstombs
(
NULL
,
wSimple
,
0
);
ok
(
ret
==
4
,
"
ret = %d
\n
"
,
ret
);
ok
(
ret
==
4
,
"
wcstombs did not return 4
\n
"
);
ret
=
wcstombs
(
mOut
,
wSimple
,
6
);
ok
(
ret
==
4
,
"
ret = %d
\n
"
,
ret
);
ok
(
ret
==
4
,
"
wcstombs did not return 4
\n
"
);
ok
(
!
memcmp
(
mOut
,
mSimple
,
5
*
sizeof
(
char
)),
"mOut = %s
\n
"
,
mOut
);
ret
=
wcstombs
(
mOut
,
wSimple
,
2
);
ok
(
ret
==
2
,
"
ret = %d
\n
"
,
ret
);
ok
(
ret
==
2
,
"
wcstombs did not return 2
\n
"
);
ok
(
!
memcmp
(
mOut
,
mSimple
,
5
*
sizeof
(
char
)),
"mOut = %s
\n
"
,
mOut
);
if
(
!
setlocale
(
LC_ALL
,
"Japanese_Japan.932"
))
{
...
...
@@ -1209,11 +1209,11 @@ static void test_mbstowcs(void)
}
ret
=
mbstowcs
(
wOut
,
mHiragana
,
6
);
ok
(
ret
==
2
,
"
ret = %d
\n
"
,
ret
);
ok
(
ret
==
2
,
"
mbstowcs did not return 2
\n
"
);
ok
(
!
memcmp
(
wOut
,
wHiragana
,
sizeof
(
wHiragana
)),
"wOut = %s
\n
"
,
wine_dbgstr_w
(
wOut
));
ret
=
wcstombs
(
mOut
,
wHiragana
,
6
);
ok
(
ret
==
4
,
"
ret = %d
\n
"
,
ret
);
ok
(
ret
==
4
,
"
wcstombs did not return 4
\n
"
);
ok
(
!
memcmp
(
mOut
,
mHiragana
,
sizeof
(
mHiragana
)),
"mOut = %s
\n
"
,
mOut
);
if
(
!
pmbstowcs_s
||
!
pwcstombs_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