diff options
author | George Hazan <george.hazan@gmail.com> | 2012-08-16 09:45:49 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-08-16 09:45:49 +0000 |
commit | 130c2312fc836432ede2202f3ccb45624dca559f (patch) | |
tree | 9d91e9c032d86983f69c4d095eb9f8c2ae04b5ce /plugins/ExtraIcons/src/IcolibExtraIcon.cpp | |
parent | d1b34f9184e45f402d87db5bd9371e15bee9c50b (diff) |
fix for icolib-based extra icons
git-svn-id: http://svn.miranda-ng.org/main/trunk@1478 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/ExtraIcons/src/IcolibExtraIcon.cpp')
-rw-r--r-- | plugins/ExtraIcons/src/IcolibExtraIcon.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/ExtraIcons/src/IcolibExtraIcon.cpp b/plugins/ExtraIcons/src/IcolibExtraIcon.cpp index 66ade61f2d..56718af753 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 = (HANDLE) -1;
+ HANDLE hImage = INVALID_HANDLE_VALUE;
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 = (HANDLE) -1;
+ hImage = INVALID_HANDLE_VALUE;
else
hImage = AddIcon(icolibName);
|