summaryrefslogtreecommitdiff
path: root/plugins/ExtraIcons/src/IcolibExtraIcon.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-08-15 20:29:07 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-08-15 20:29:07 +0000
commit50091223b8c0ed404968441c728e400e43ac6b8a (patch)
treef89833bd530fd63655e7d0575435212d2152ff7b /plugins/ExtraIcons/src/IcolibExtraIcon.cpp
parentf5a524f750e1dc0c16d82df546557d9d7fe703f8 (diff)
- patch from pescuma for NULL handles
git-svn-id: http://svn.miranda-ng.org/main/trunk@1470 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/ExtraIcons/src/IcolibExtraIcon.cpp')
-rw-r--r--plugins/ExtraIcons/src/IcolibExtraIcon.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/ExtraIcons/src/IcolibExtraIcon.cpp b/plugins/ExtraIcons/src/IcolibExtraIcon.cpp
index f7dc03ca24..66ade61f2d 100644
--- a/plugins/ExtraIcons/src/IcolibExtraIcon.cpp
+++ b/plugins/ExtraIcons/src/IcolibExtraIcon.cpp
@@ -46,7 +46,7 @@ void IcolibExtraIcon::applyIcon(HANDLE hContact)
if (!isEnabled() || hContact == NULL)
return;
- HANDLE hImage = NULL;
+ HANDLE hImage = (HANDLE) -1;
DBVARIANT dbv = { 0 };
if (!DBGetContactSettingString(hContact, MODULE_NAME, name.c_str(), &dbv))
@@ -85,7 +85,7 @@ int IcolibExtraIcon::setIcon(int id, HANDLE hContact, void *icon)
HANDLE hImage;
if (IsEmpty(icolibName))
- hImage = NULL;
+ hImage = (HANDLE) -1;
else
hImage = AddIcon(icolibName);