[PATCH 3/3] windows.globalization/tests: Fix the GetUserDefaultGeoName() test on Win10 1709.
Francois Gouget
fgouget at codeweavers.com
Wed Apr 21 13:24:45 CDT 2021
Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---
Unfortunately we don't have a non-English test configuration for Windows
10 1709. It would be interesting to see if it return "" too.
---
dlls/windows.globalization/tests/globalization.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/dlls/windows.globalization/tests/globalization.c b/dlls/windows.globalization/tests/globalization.c
index 7746e93dc1a..631c7ad2449 100644
--- a/dlls/windows.globalization/tests/globalization.c
+++ b/dlls/windows.globalization/tests/globalization.c
@@ -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));
}
--
2.20.1
More information about the wine-devel
mailing list