[PATCH] winemac.drv: Avoid an unneeded lstrlenW() call.
Francois Gouget
fgouget at free.fr
Sat Sep 7 23:24:49 CDT 2019
Note that since tiptext is a buffer it cannot be NULL.
Signed-off-by: Francois Gouget <fgouget at free.fr>
---
dlls/winemac.drv/systray.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/winemac.drv/systray.c b/dlls/winemac.drv/systray.c
index a2c32b238fe..75bca5e3d51 100644
--- a/dlls/winemac.drv/systray.c
+++ b/dlls/winemac.drv/systray.c
@@ -123,7 +123,7 @@ static BOOL modify_icon(struct tray_icon *icon, NOTIFYICONDATAW *nid)
if (icon->image)
update_image = TRUE;
- if (lstrlenW(icon->tiptext))
+ if (*icon->tiptext)
update_tooltip = TRUE;
}
else
--
2.20.1
More information about the wine-devel
mailing list