advapi32: Properly skip the tests that depend on English locale.

This commit is contained in:
Dmitry Timoshkov 2011-03-14 17:35:04 +08:00 committed by Alexandre Julliard
parent c3afbcfd60
commit 99109567ad
1 changed files with 4 additions and 4 deletions

View File

@ -1917,7 +1917,7 @@ static void test_LookupAccountName(void)
domain_size = domain_save;
sid_size = sid_save;
if (PRIMARYLANGID(LANGIDFROMLCID(GetThreadLocale())) != LANG_ENGLISH)
if (GetSystemDefaultLangID() != LANG_ENGLISH)
{
skip("Non-english locale (test with hardcoded 'Everyone')\n");
}
@ -2055,7 +2055,7 @@ static void test_LookupAccountName(void)
return;
}
if (PRIMARYLANGID(LANGIDFROMLCID(GetThreadLocale())) != LANG_ENGLISH)
if (GetSystemDefaultLangID() != LANG_ENGLISH)
{
skip("Non-english locale (skipping well known name creation tests)\n");
return;
@ -2542,7 +2542,7 @@ static void test_SetEntriesInAclW(void)
ok(NewAcl != NULL, "returned acl was NULL\n");
LocalFree(NewAcl);
if (PRIMARYLANGID(LANGIDFROMLCID(GetThreadLocale())) != LANG_ENGLISH)
if (GetSystemDefaultLangID() != LANG_ENGLISH)
{
skip("Non-english locale (test with hardcoded 'Everyone')\n");
}
@ -2673,7 +2673,7 @@ static void test_SetEntriesInAclA(void)
ok(NewAcl != NULL, "returned acl was NULL\n");
LocalFree(NewAcl);
if (PRIMARYLANGID(LANGIDFROMLCID(GetThreadLocale())) != LANG_ENGLISH)
if (GetSystemDefaultLangID() != LANG_ENGLISH)
{
skip("Non-english locale (test with hardcoded 'Everyone')\n");
}