diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/icolib/skin2icons.cpp | 3 |
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) {
|