[PATCH] winex11.drv: Fix misplaced parentheses.

Andrey Gusev andrey.goosev at gmail.com
Mon Oct 16 05:31:14 CDT 2017


Signed-off-by: Andrey Gusev <andrey.goosev at gmail.com>
---
 dlls/winex11.drv/mouse.c   | 2 +-
 dlls/winex11.drv/systray.c | 2 +-
 dlls/winex11.drv/window.c  | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/winex11.drv/mouse.c b/dlls/winex11.drv/mouse.c
index 5ace40566a..8eb3258b5f 100644
--- a/dlls/winex11.drv/mouse.c
+++ b/dlls/winex11.drv/mouse.c
@@ -1287,7 +1287,7 @@ static Cursor create_xlib_color_cursor( HDC hdc, const ICONINFOEXW *icon, int wi
     /* generate mask from the alpha channel if we have one */
 
     for (i = 0, ptr = color_bits; i < width * height; i++, ptr++)
-        if ((has_alpha = (*ptr & 0xff000000) != 0)) break;
+        if ((has_alpha = (*ptr & 0xff000000)) != 0) break;
 
     if (has_alpha)
     {
diff --git a/dlls/winex11.drv/systray.c b/dlls/winex11.drv/systray.c
index 815e5548bf..36fa79ef86 100644
--- a/dlls/winex11.drv/systray.c
+++ b/dlls/winex11.drv/systray.c
@@ -399,7 +399,7 @@ static void repaint_tray_icon( struct tray_icon *icon )
 
     /* check if the icon was drawn with an alpha channel */
     for (i = 0, ptr = color_bits; i < size.cx * size.cy; i++)
-        if ((has_alpha = (ptr[i] & 0xff000000) != 0)) break;
+        if ((has_alpha = (ptr[i] & 0xff000000)) != 0) break;
 
     if (!has_alpha)
     {
diff --git a/dlls/winex11.drv/window.c b/dlls/winex11.drv/window.c
index d35328c6d2..bf1e7c2909 100644
--- a/dlls/winex11.drv/window.c
+++ b/dlls/winex11.drv/window.c
@@ -503,7 +503,7 @@ static unsigned long *get_bitmap_argb( HDC hdc, HBITMAP color, HBITMAP mask, uns
     bits[1] = bm.bmHeight;
 
     for (i = 0; i < bm.bmWidth * bm.bmHeight; i++)
-        if ((has_alpha = (bits[i + 2] & 0xff000000) != 0)) break;
+        if ((has_alpha = (bits[i + 2] & 0xff000000)) != 0) break;
 
     if (!has_alpha)
     {
-- 
2.13.6




More information about the wine-patches mailing list