gdi32/tests: Fix a compiler warning.

Signed-off-by: Sven Baars <sbaars@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Sven Baars 2020-11-09 15:07:13 +01:00 committed by Alexandre Julliard
parent c8eae716b6
commit ca96e04637
1 changed files with 4 additions and 5 deletions

View File

@ -1330,17 +1330,16 @@ static void test_GetCharABCWidths(void)
memset(&lf, 0, sizeof(lf));
lf.lfHeight = 20;
switch(i)
if (i == 1)
{
case 1:
strcpy(lf.lfFaceName, "Tahoma");
code = 'a';
break;
case 2:
}
else
{
strcpy(lf.lfFaceName, "Times New Roman");
lf.lfItalic = TRUE;
code = 'f';
break;
}
if (!is_truetype_font_installed(lf.lfFaceName))
{