diff options
Diffstat (limited to 'plugins/ExtraIcons/src/DefaultExtraIcons.cpp')
-rw-r--r-- | plugins/ExtraIcons/src/DefaultExtraIcons.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/ExtraIcons/src/DefaultExtraIcons.cpp b/plugins/ExtraIcons/src/DefaultExtraIcons.cpp index 8839aa64ae..d9bb6f951b 100644 --- a/plugins/ExtraIcons/src/DefaultExtraIcons.cpp +++ b/plugins/ExtraIcons/src/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 == NULL)
+ if (hImage == (HANDLE) -1)
return NULL;
ProtoInfo tmp;
@@ -364,7 +364,7 @@ static int ProtocolApplyIcon(WPARAM wParam, LPARAM lParam) ProtoInfo *pi = FindProto(proto);
- HANDLE hImage = NULL;
+ HANDLE hImage = (HANDLE) -1;
if (pi != NULL)
hImage = pi->hImage;
|