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
4623c411
Commit
4623c411
authored
Nov 19, 2023
by
Piotr Caban
Committed by
Alexandre Julliard
Nov 20, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Add _mbsrev tests.
parent
c180a902
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
string.c
dlls/msvcrt/tests/string.c
+22
-0
No files found.
dlls/msvcrt/tests/string.c
View file @
4623c411
...
...
@@ -4671,6 +4671,27 @@ static void test_wcsncpy(void)
wine_dbgstr_wn
(
dst
,
ARRAY_SIZE
(
dst
)));
}
static
void
test_mbsrev
(
void
)
{
unsigned
char
buf
[
64
],
*
ret
;
int
cp
=
_getmbcp
();
_setmbcp
(
932
);
strcpy
((
char
*
)
buf
,
"
\x36\x8c\x8e
"
);
ret
=
_mbsrev
(
buf
);
ok
(
ret
==
buf
,
"ret = %p, expected %p
\n
"
,
ret
,
buf
);
ok
(
!
memcmp
(
buf
,
"
\x8c\x8e\x36
"
,
4
),
"buf = %s
\n
"
,
wine_dbgstr_a
((
char
*
)
buf
));
/* test string that ends with leading byte */
strcpy
((
char
*
)
buf
,
"
\x36\x8c
"
);
ret
=
_mbsrev
(
buf
);
ok
(
ret
==
buf
,
"ret = %p, expected %p
\n
"
,
ret
,
buf
);
ok
(
!
memcmp
(
buf
,
"
\x36
"
,
2
),
"buf = %s
\n
"
,
wine_dbgstr_a
((
char
*
)
buf
));
_setmbcp
(
cp
);
}
START_TEST
(
string
)
{
char
mem
[
100
];
...
...
@@ -4831,4 +4852,5 @@ START_TEST(string)
test_SpecialCasing
();
test__mbbtype
();
test_wcsncpy
();
test_mbsrev
();
}
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