From 98b1d68aac8d4195821ff69f6b8f49baadddd8f4 Mon Sep 17 00:00:00 2001 From: Francois Gouget Date: Sun, 8 Sep 2019 06:24:49 +0200 Subject: [PATCH] winemac.drv: Avoid an unneeded lstrlenW() call. Note that since tiptext is a buffer it cannot be NULL. Signed-off-by: Francois Gouget Signed-off-by: Ken Thomases Signed-off-by: Alexandre Julliard --- 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