summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-04-12 15:54:25 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-04-12 15:54:25 +0000
commit94299a59b85ed18ffcaadd7c857bea64fcc2864a (patch)
tree81b4d28a7ed4b3bc82e993ae10677fc90f165dcd /src/modules
parent0516812f7ae347ddc83354db3dc64626999ae679 (diff)
fix for random white icons in menus
git-svn-id: http://svn.miranda-ng.org/main/trunk@4433 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/icolib/skin2icons.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/modules/icolib/skin2icons.cpp b/src/modules/icolib/skin2icons.cpp
index 46f60374fd..1b8ee3def0 100644
--- a/src/modules/icolib/skin2icons.cpp
+++ b/src/modules/icolib/skin2icons.cpp
@@ -455,6 +455,9 @@ IcolibItem* IcoLib_FindIcon(const char* pszIconName)
IcolibItem* IcoLib_FindHIcon(HICON hIcon, bool &big)
{
+ if (hIcon == NULL)
+ return NULL;
+
for (int i = 0; i < iconList.getCount(); i++) {
IcolibItem *p = iconList[i];
if ((void*)p == hIcon) {