From f9546329b6b94d98517252d438c9998a2af46bf9 Mon Sep 17 00:00:00 2001 From: Qian Hong Date: Fri, 19 Oct 2012 02:13:01 +0800 Subject: [PATCH] gdi32/tests: Marked EnumFontFamiliesEx_default_charset test on Arabic locale as broken. --- dlls/gdi32/tests/font.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/gdi32/tests/font.c b/dlls/gdi32/tests/font.c index f32d2b9f2d5..4e34a4c09c1 100644 --- a/dlls/gdi32/tests/font.c +++ b/dlls/gdi32/tests/font.c @@ -2421,6 +2421,7 @@ static void test_EnumFontFamiliesEx_default_charset(void) LOGFONT gui_font, enum_font; DWORD ret; HDC hdc; + WORD system_lang_id = PRIMARYLANGID(GetSystemDefaultLangID()); ret = GetObject(GetStockObject(DEFAULT_GUI_FONT), sizeof(gui_font), &gui_font); ok(ret, "GetObject failed.\n"); @@ -2442,7 +2443,7 @@ static void test_EnumFontFamiliesEx_default_charset(void) } trace("'%s' has %d charsets.\n", gui_font.lfFaceName, efd.total); - ok(efd.lf[0].lfCharSet == gui_font.lfCharSet, + ok(efd.lf[0].lfCharSet == gui_font.lfCharSet || broken(system_lang_id == LANG_ARABIC), "(%s) got charset %d expected %d\n", efd.lf[0].lfFaceName, efd.lf[0].lfCharSet, gui_font.lfCharSet); -- 2.11.4.GIT