Commit 08c6114f authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

windows.globalization/tests: Fix the GetUserDefaultGeoName() test on Win10 1709.

parent 0e0f3ef8
......@@ -108,8 +108,10 @@ static void test_GlobalizationPreferences(void)
if (pGetUserDefaultGeoName)
{
WCHAR country[16];
pGetUserDefaultGeoName(country, ARRAY_SIZE(country));
ok(wcslen(country) == len && !memcmp(buf, country, len),
DWORD geolen;
geolen = pGetUserDefaultGeoName(country, ARRAY_SIZE(country));
ok(broken(geolen == 1) || /* Win10 1709 */
(wcslen(country) == len && !memcmp(buf, country, len)),
"IGlobalizationPreferencesStatics_get_HomeGeographicRegion returned len %u, str %s, expected %s\n",
len, wine_dbgstr_w(buf), wine_dbgstr_w(country));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment