Sebastian Lackner : winetest: Remove duplicate if check.

Alexandre Julliard julliard at winehq.org
Mon Aug 1 16:48:56 CDT 2016


Module: wine
Branch: master
Commit: 13aa0c0419679beb5026f37820c1ad7e9d57fa59
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=13aa0c0419679beb5026f37820c1ad7e9d57fa59

Author: Sebastian Lackner <sebastian at fds-team.de>
Date:   Sun Jul 31 20:04:10 2016 +0200

winetest: Remove duplicate if check.

Signed-off-by: Sebastian Lackner <sebastian at fds-team.de>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 programs/winetest/gui.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/programs/winetest/gui.c b/programs/winetest/gui.c
index a8bcf05..2948d7e 100644
--- a/programs/winetest/gui.c
+++ b/programs/winetest/gui.c
@@ -547,8 +547,7 @@ report (enum report_type t, ...)
     }
         
     va_start (ap, t);
-    if (t < sizeof text_funcs / sizeof text_funcs[0] &&
-        t < sizeof GUI_funcs / sizeof GUI_funcs[0]) ret = funcs[t](ap);
+    if (t < sizeof text_funcs / sizeof text_funcs[0]) ret = funcs[t](ap);
     else report (R_WARNING, "unimplemented report type: %d", t);
     va_end (ap);
     return ret;




More information about the wine-cvs mailing list