From af5b414000570b9f99669d1db3236c725b893499 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Wed, 19 Oct 2016 09:22:48 +0200 Subject: [PATCH] explorer: Check icon for NULL (Coverity). Signed-off-by: Marcus Meissner Signed-off-by: Alexandre Julliard --- programs/explorer/systray.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/programs/explorer/systray.c b/programs/explorer/systray.c index b3c192ad3e9..ddfd67d7bb7 100644 --- a/programs/explorer/systray.c +++ b/programs/explorer/systray.c @@ -588,8 +588,11 @@ static BOOL handle_incoming(HWND hwndSource, COPYDATASTRUCT *cds) if (icon) ret = modify_icon( icon, &nid ); break; case NIM_SETVERSION: - icon->version = nid.u.uVersion; - ret = TRUE; + if (icon) + { + icon->version = nid.u.uVersion; + ret = TRUE; + } break; default: WINE_FIXME("unhandled tray message: %ld\n", cds->dwData);