explorer: Check icon for NULL (Coverity).

Signed-off-by: Marcus Meissner <marcus@jet.franken.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Marcus Meissner 2016-10-19 09:22:48 +02:00 committed by Alexandre Julliard
parent 26d0105cd8
commit af5b414000
1 changed files with 5 additions and 2 deletions

View File

@ -588,8 +588,11 @@ static BOOL handle_incoming(HWND hwndSource, COPYDATASTRUCT *cds)
if (icon) ret = modify_icon( icon, &nid ); if (icon) ret = modify_icon( icon, &nid );
break; break;
case NIM_SETVERSION: case NIM_SETVERSION:
icon->version = nid.u.uVersion; if (icon)
ret = TRUE; {
icon->version = nid.u.uVersion;
ret = TRUE;
}
break; break;
default: default:
WINE_FIXME("unhandled tray message: %ld\n", cds->dwData); WINE_FIXME("unhandled tray message: %ld\n", cds->dwData);