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

Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Francois Gouget 2021-04-21 20:24:45 +02:00 committed by Alexandre Julliard
parent 0e0f3ef872
commit 08c6114fbb
1 changed files with 4 additions and 2 deletions

View File

@ -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));
}