msvcrt: Fix p__p___mb_cur_max tests.
This commit is contained in:
parent
9b1a2d8f4f
commit
c4f935d449
|
@ -785,10 +785,8 @@ static void test__Gettnames(void)
|
||||||
static void test___mb_cur_max_func(void)
|
static void test___mb_cur_max_func(void)
|
||||||
{
|
{
|
||||||
int mb_cur_max;
|
int mb_cur_max;
|
||||||
CPINFO cp;
|
|
||||||
|
|
||||||
setlocale(LC_ALL, "C");
|
setlocale(LC_ALL, "C");
|
||||||
GetCPInfo(CP_ACP, &cp);
|
|
||||||
|
|
||||||
/* for newer Windows */
|
/* for newer Windows */
|
||||||
if(!p___mb_cur_max_func)
|
if(!p___mb_cur_max_func)
|
||||||
|
@ -812,13 +810,7 @@ static void test___mb_cur_max_func(void)
|
||||||
win_skip("Skipping __p___mb_cur_max tests\n");
|
win_skip("Skipping __p___mb_cur_max tests\n");
|
||||||
else {
|
else {
|
||||||
mb_cur_max = *p__p___mb_cur_max();
|
mb_cur_max = *p__p___mb_cur_max();
|
||||||
if (cp.MaxCharSize != 1) {
|
|
||||||
todo_wine ok(mb_cur_max == cp.MaxCharSize, "mb_cur_max = %d, expected %d\n",
|
|
||||||
mb_cur_max, cp.MaxCharSize);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
ok(mb_cur_max == 1, "mb_cur_max = %d, expected 1\n", mb_cur_max);
|
ok(mb_cur_max == 1, "mb_cur_max = %d, expected 1\n", mb_cur_max);
|
||||||
}
|
|
||||||
|
|
||||||
/* some old Windows don't set chinese */
|
/* some old Windows don't set chinese */
|
||||||
if (!setlocale(LC_ALL, "chinese"))
|
if (!setlocale(LC_ALL, "chinese"))
|
||||||
|
|
Loading…
Reference in New Issue