shlwapi: Fixed string tests for non-English locales.
This commit is contained in:
parent
1f07e4af18
commit
f662e2548b
|
@ -761,8 +761,8 @@ START_TEST(string)
|
||||||
TCHAR decimalDelim[8];
|
TCHAR decimalDelim[8];
|
||||||
CoInitialize(0);
|
CoInitialize(0);
|
||||||
|
|
||||||
GetLocaleInfo(GetUserDefaultLCID(), LOCALE_STHOUSAND, thousandDelim, 8);
|
GetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_STHOUSAND, thousandDelim, 8);
|
||||||
GetLocaleInfo(GetUserDefaultLCID(), LOCALE_SDECIMAL, decimalDelim, 8);
|
GetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_SDECIMAL, decimalDelim, 8);
|
||||||
|
|
||||||
hShlwapi = GetModuleHandleA("shlwapi");
|
hShlwapi = GetModuleHandleA("shlwapi");
|
||||||
if (!hShlwapi)
|
if (!hShlwapi)
|
||||||
|
@ -787,11 +787,13 @@ START_TEST(string)
|
||||||
test_StrFormatKBSizeA();
|
test_StrFormatKBSizeA();
|
||||||
test_StrFormatKBSizeW();
|
test_StrFormatKBSizeW();
|
||||||
}
|
}
|
||||||
if (0)
|
|
||||||
{
|
/* language-dependent test */
|
||||||
/* language-dependent test. FIXME: how to detect the language? */
|
if (PRIMARYLANGID(GetUserDefaultLangID()) != LANG_ENGLISH)
|
||||||
|
trace("Skipping StrFromTimeInterval test for non English language\n");
|
||||||
|
else
|
||||||
test_StrFromTimeIntervalA();
|
test_StrFromTimeIntervalA();
|
||||||
}
|
|
||||||
test_StrCmpA();
|
test_StrCmpA();
|
||||||
test_StrCmpW();
|
test_StrCmpW();
|
||||||
test_StrRetToBSTR();
|
test_StrRetToBSTR();
|
||||||
|
|
Loading…
Reference in New Issue