From 4036afa9b54a8c3ccb84981eb248febc3dd4e7cf Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 4 Nov 2012 15:53:42 +0000 Subject: crash fix git-svn-id: http://svn.miranda-ng.org/main/trunk@2184 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/modules/extraicons/IcolibExtraIcon.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/modules') 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 }; -- cgit v1.2.3