winemac.drv: Avoid an unneeded lstrlenW() call.

Note that since tiptext is a buffer it cannot be NULL.

Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Ken Thomases <ken@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Francois Gouget 2019-09-08 06:24:49 +02:00 committed by Alexandre Julliard
parent b035f5c74c
commit 98b1d68aac

View file

@ -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