From 68f717a42ddd6a7bfb85b3709d0a3e53e40d2ad9 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 16 Sep 2012 17:11:08 +0000 Subject: fix for MRA extra icons git-svn-id: http://svn.miranda-ng.org/main/trunk@1583 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/MRA/Mra_functions.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'protocols') diff --git a/protocols/MRA/Mra_functions.cpp b/protocols/MRA/Mra_functions.cpp index b4f49120c4..288793abe1 100644 --- a/protocols/MRA/Mra_functions.cpp +++ b/protocols/MRA/Mra_functions.cpp @@ -1344,13 +1344,16 @@ void CMraProto::CListShowMenuItem(HANDLE hMenuItem, BOOL bShow) int ExtraSetIcon(HANDLE hExtraIcon, HANDLE hContact, HANDLE hImage, int iColumnType) { + if (hImage == NULL) + hImage = INVALID_HANDLE_VALUE; + if (hExtraIcon) return ExtraIcon_SetIcon(hExtraIcon, hContact, hImage); IconExtraColumn iec; iec.cbSize = sizeof(iec); iec.ColumnType = iColumnType; - iec.hImage = ((hImage != NULL)? hImage:INVALID_HANDLE_VALUE); + iec.hImage = hImage; return CallService(MS_CLIST_EXTRA_SET_ICON, (WPARAM)hContact, (LPARAM)&iec); } -- cgit v1.2.3