Alexandre Julliard : gdi32/tests: Use the OS/2 last char for the Ansi charset limit.

Alexandre Julliard julliard at winehq.org
Mon Nov 15 16:01:27 CST 2021


Module: wine
Branch: master
Commit: d2e7a977cfaca4d5784f063ead5eadf3344064eb
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=d2e7a977cfaca4d5784f063ead5eadf3344064eb

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Sun Nov 14 11:52:12 2021 +0100

gdi32/tests: Use the OS/2 last char for the Ansi charset limit.

Fixes a test failure with the cmmi10.ttf font.

Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/gdi32/tests/font.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/gdi32/tests/font.c b/dlls/gdi32/tests/font.c
index 11150685bcd..0c346fa5e6b 100644
--- a/dlls/gdi32/tests/font.c
+++ b/dlls/gdi32/tests/font.c
@@ -3997,7 +3997,7 @@ static void test_text_metrics(const LOGFONTA *lf, const NEWTEXTMETRICA *ntm)
                 expect_break_W = os2_first_char;
             expect_default_W  = expect_break_W - 1;
             expect_first_A    = expect_default_W - 1;
-            expect_last_A     = min(expect_last_W, 0xff);
+            expect_last_A     = min(os2_last_char, 0xff);
         }
         expect_break_A    = expect_break_W;
         expect_default_A  = expect_default_W;




More information about the wine-cvs mailing list