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

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2020-01-06 20:01:57 -06:00 committed by Alexandre Julliard
parent 388dd4d890
commit 8387605959
1 changed files with 2 additions and 0 deletions

View File

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