Sven Baars : gdi32/tests: Fix a compiler warning.

Alexandre Julliard julliard at winehq.org
Thu Nov 12 15:17:45 CST 2020


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

Author: Sven Baars <sbaars at codeweavers.com>
Date:   Mon Nov  9 15:07:13 2020 +0100

gdi32/tests: Fix a compiler warning.

Signed-off-by: Sven Baars <sbaars at codeweavers.com>
Signed-off-by: Huw Davies <huw at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/gdi32/tests/font.c | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

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))
         {




More information about the wine-cvs mailing list