From f296a083590d5400503f1caaffdf4a26e5ffdafc Mon Sep 17 00:00:00 2001 From: pescuma Date: Thu, 16 Aug 2012 19:09:08 +0000 Subject: Using INVALID_HANDLE_VALUE instead of -1 and fix for usedIcons (thanks ghazan) git-svn-id: http://pescuma.googlecode.com/svn/trunk/Miranda@257 c086bb3d-8645-0410-b8da-73a8550f86e7 --- Plugins/extraicons/DefaultExtraIcons.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Plugins/extraicons/DefaultExtraIcons.cpp') diff --git a/Plugins/extraicons/DefaultExtraIcons.cpp b/Plugins/extraicons/DefaultExtraIcons.cpp index d1a03b4..3a7d068 100644 --- a/Plugins/extraicons/DefaultExtraIcons.cpp +++ b/Plugins/extraicons/DefaultExtraIcons.cpp @@ -343,7 +343,7 @@ static ProtoInfo *FindProto(const char * proto) return NULL; HANDLE hImage = (HANDLE) CallService(MS_CLIST_EXTRA_ADD_ICON, (WPARAM) hIcon, 0); - if (hImage == (HANDLE) -1) + if (hImage == INVALID_HANDLE_VALUE) return NULL; ProtoInfo tmp; @@ -364,7 +364,7 @@ static int ProtocolApplyIcon(WPARAM wParam, LPARAM lParam) ProtoInfo *pi = FindProto(proto); - HANDLE hImage = (HANDLE) -1; + HANDLE hImage = INVALID_HANDLE_VALUE; if (pi != NULL) hImage = pi->hImage; -- cgit v1.2.3