ole32/tests: Skip a string that may not round-trip in all codepages.

This commit is contained in:
Alexandre Julliard 2009-08-19 10:02:50 +02:00
parent e01420d72a
commit 4770ba7bcc
1 changed files with 10 additions and 0 deletions

View File

@ -1432,6 +1432,16 @@ static void test_file_monikers(void)
for (i = 0; i < COUNTOF(wszFile); ++i)
{
int j ;
if (i == 2)
{
BOOL used;
WideCharToMultiByte( CP_ACP, WC_NO_BEST_FIT_CHARS, wszFile[i], -1, NULL, 0, NULL, &used );
if (used)
{
skip("string 2 doesn't round trip in codepage %u\n", GetACP() );
continue;
}
}
for (j = lstrlenW(wszFile[i]); j > 0; --j)
{
wszFile[i][j] = 0;