summaryrefslogtreecommitdiff
path: root/src/modules/extraicons
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/extraicons')
-rw-r--r--src/modules/extraicons/IcolibExtraIcon.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/modules/extraicons/IcolibExtraIcon.cpp b/src/modules/extraicons/IcolibExtraIcon.cpp
index c50d815e57..8f69a77a5b 100644
--- a/src/modules/extraicons/IcolibExtraIcon.cpp
+++ b/src/modules/extraicons/IcolibExtraIcon.cpp
@@ -70,6 +70,9 @@ int IcolibExtraIcon::setIcon(int id, HANDLE hContact, void *icon)
if (hContact == NULL || id != this->id)
return -1;
+ if (icon == INVALID_HANDLE_VALUE)
+ icon = NULL;
+
if (isEnabled())
{
DBVARIANT dbv = { 0 };