diff options
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/MRA/Mra_functions.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
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);
}
|