mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 12:49:45 +00:00
mlang/tests: GetLastError may not be set if Japanese conversions fail with S_FAIL so do not require that to skip the Japanese tests.
This commit is contained in:
parent
86de5c2546
commit
c209245f17
@ -1197,9 +1197,8 @@ static void test_JapaneseConversion(void)
|
||||
destsz = 30;
|
||||
outlen = jis_jp[i][0];
|
||||
srcsz = unc_jp[i][0];
|
||||
SetLastError(0xdeadbeef);
|
||||
hr = pConvertINetUnicodeToMultiByte(NULL, 50220, &unc_jp[i][1], &srcsz, output, &destsz);
|
||||
if (hr == S_FALSE && GetLastError() == ERROR_INVALID_NAME)
|
||||
if (hr == S_FALSE)
|
||||
{
|
||||
skip("Code page identifier 50220 is not supported\n");
|
||||
break;
|
||||
@ -1236,9 +1235,8 @@ static void test_JapaneseConversion(void)
|
||||
outlen = sjis_jp[i][0];
|
||||
srcsz = unc_jp[i][0];
|
||||
|
||||
SetLastError(0xdeadbeef);
|
||||
hr = pConvertINetUnicodeToMultiByte(NULL, 932, &unc_jp[i][1], &srcsz, output, &destsz);
|
||||
if (hr == S_FALSE && GetLastError() == ERROR_INVALID_NAME)
|
||||
if (hr == S_FALSE)
|
||||
{
|
||||
skip("Code page identifier 932 is not supported\n");
|
||||
break;
|
||||
@ -1265,9 +1263,8 @@ static void test_JapaneseConversion(void)
|
||||
outlen = euc_jp[i][0];
|
||||
srcsz = unc_jp[i][0];
|
||||
|
||||
SetLastError(0xdeadbeef);
|
||||
hr = pConvertINetUnicodeToMultiByte(NULL, 51932, &unc_jp[i][1], &srcsz, output, &destsz);
|
||||
if (hr == S_FALSE && GetLastError() == ERROR_INVALID_NAME)
|
||||
if (hr == S_FALSE)
|
||||
{
|
||||
skip("Code page identifier 51932 is not supported\n");
|
||||
break;
|
||||
@ -1291,9 +1288,8 @@ static void test_JapaneseConversion(void)
|
||||
i = 0;
|
||||
destsz = 30;
|
||||
srcsz = jis_jp[i][0];
|
||||
SetLastError(0xdeadbeef);
|
||||
hr = pConvertINetMultiByteToUnicode(NULL, 50932, &jis_jp[i][1], &srcsz, outputW, &destsz);
|
||||
if (hr == S_FALSE && GetLastError() == ERROR_INVALID_NAME)
|
||||
if (hr == S_FALSE)
|
||||
{
|
||||
skip("Code page identifier 50932 is not supported\n");
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user