Francois Gouget : winemac.drv: Avoid an unneeded lstrlenW() call.
Module: wine Branch: master Commit: 98b1d68aac8d4195821ff69f6b8f49baadddd8f4 URL: https://source.winehq.org/git/wine.git/?a=commit;h=98b1d68aac8d4195821ff69f6... Author: Francois Gouget <fgouget(a)free.fr> Date: Sun Sep 8 06:24:49 2019 +0200 winemac.drv: Avoid an unneeded lstrlenW() call. Note that since tiptext is a buffer it cannot be NULL. Signed-off-by: Francois Gouget <fgouget(a)free.fr> Signed-off-by: Ken Thomases <ken(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- 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 a2c32b2..75bca5e 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
participants (1)
-
Alexandre Julliard