summaryrefslogtreecommitdiff
path: root/plugins/SecureIM/src/crypt_icons.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-11-19 15:22:11 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-11-19 15:22:11 +0000
commitb0b7cd90e972155a488b017eae3122ca8ac11ca8 (patch)
tree492b159a318acefcebb522959123a0ee7e0c71d8 /plugins/SecureIM/src/crypt_icons.cpp
parent753aa1585f9e0939cba3073f8ef2c70972a47b62 (diff)
- returned back SecureIM option for the extra icons usage;
- code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@2376 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SecureIM/src/crypt_icons.cpp')
-rw-r--r--plugins/SecureIM/src/crypt_icons.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/SecureIM/src/crypt_icons.cpp b/plugins/SecureIM/src/crypt_icons.cpp
index 917d3e1682..791fd1fd24 100644
--- a/plugins/SecureIM/src/crypt_icons.cpp
+++ b/plugins/SecureIM/src/crypt_icons.cpp
@@ -47,6 +47,9 @@ HICON mode2icon(int mode, int type)
HANDLE mode2clicon(int mode, int type)
{
+ if (!bASI)
+ return INVALID_HANDLE_VALUE;
+
ICON_CACHE &p = getCacheItem(mode, type);
if (p.hCLIcon == NULL)
p.hCLIcon = (HANDLE)CallService(MS_CLIST_EXTRA_ADD_ICON, (WPARAM)p.icon, 0);