From 50091223b8c0ed404968441c728e400e43ac6b8a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 15 Aug 2012 20:29:07 +0000 Subject: - patch from pescuma for NULL handles git-svn-id: http://svn.miranda-ng.org/main/trunk@1470 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/ExtraIcons/src/IcolibExtraIcon.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/ExtraIcons/src/IcolibExtraIcon.cpp') 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); -- cgit v1.2.3