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/options.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Plugins/extraicons/options.cpp') diff --git a/Plugins/extraicons/options.cpp b/Plugins/extraicons/options.cpp index 0d9114e..2f2b6a3 100644 --- a/Plugins/extraicons/options.cpp +++ b/Plugins/extraicons/options.cpp @@ -91,7 +91,7 @@ static void RemoveExtraIcons(int slot) HANDLE hContact = (HANDLE) CallService(MS_DB_CONTACT_FINDFIRST, 0, 0); while (hContact != NULL) { - Clist_SetExtraIcon(hContact, slot, (HANDLE) -1); + Clist_SetExtraIcon(hContact, slot, INVALID_HANDLE_VALUE); hContact = (HANDLE) CallService(MS_DB_CONTACT_FINDNEXT, (WPARAM) hContact, 0); } -- cgit v1.2.3