Zebediah Figura : user32/tests: Fix a dialog test failure on Windows 10.

Alexandre Julliard julliard at winehq.org
Tue Jan 7 17:25:24 CST 2020


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

Author: Zebediah Figura <z.figura12 at gmail.com>
Date:   Mon Jan  6 20:01:57 2020 -0600

user32/tests: Fix a dialog test failure on Windows 10.

Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/user32/tests/dialog.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dlls/user32/tests/dialog.c b/dlls/user32/tests/dialog.c
index b72f08816d..2a7d71f67a 100644
--- a/dlls/user32/tests/dialog.c
+++ b/dlls/user32/tests/dialog.c
@@ -1984,6 +1984,8 @@ static void test_MessageBoxFontTest(void)
 
     ncMetrics.cbSize = FIELD_OFFSET(NONCLIENTMETRICSW, iPaddedBorderWidth);
     SystemParametersInfoW(SPI_GETNONCLIENTMETRICS, 0, &ncMetrics, 0);
+    /* The height doesn't match on Windows 10 1709+. */
+    ncMetrics.lfMessageFont.lfHeight = lfStaticFont.lfHeight;
     ok( !memcmp(&lfStaticFont, &ncMetrics.lfMessageFont, FIELD_OFFSET(LOGFONTW, lfFaceName)) &&
         !lstrcmpW(lfStaticFont.lfFaceName, ncMetrics.lfMessageFont.lfFaceName),
         "dialog doesn't use message box font\n");




More information about the wine-cvs mailing list