diff options
author | George Hazan <george.hazan@gmail.com> | 2012-09-16 17:11:08 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-09-16 17:11:08 +0000 |
commit | 68f717a42ddd6a7bfb85b3709d0a3e53e40d2ad9 (patch) | |
tree | dea1cd16189693516e2707489c64595534ba2444 /protocols | |
parent | 478edfb61968b7b54638d8dbef11333bf22ff030 (diff) |
fix for MRA extra icons
git-svn-id: http://svn.miranda-ng.org/main/trunk@1583 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
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);
}
|