[PATCH v2 1/7] gdi32/tests: Fix a compiler warning.
Huw Davies
huw at codeweavers.com
Thu Nov 12 03:27:11 CST 2020
On Mon, Nov 09, 2020 at 03:07:13PM +0100, Sven Baars wrote:
> diff --git a/dlls/gdi32/tests/font.c b/dlls/gdi32/tests/font.c
> index 4c8b1cbb91b..d3ec971dce0 100644
> --- a/dlls/gdi32/tests/font.c
> +++ b/dlls/gdi32/tests/font.c
> @@ -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))
> {
Ideally this would be moved to a table driven test, but it's
just about small enough to get away with it...
Signed-off-by: Huw Davies <huw at codeweavers.com>
More information about the wine-devel
mailing list