diff options
author | George Hazan <george.hazan@gmail.com> | 2012-11-04 15:53:42 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-11-04 15:53:42 +0000 |
commit | 4036afa9b54a8c3ccb84981eb248febc3dd4e7cf (patch) | |
tree | c8b446f81e7e8c544379d51303adf68726e405d2 /src/modules | |
parent | ecd88d0d6db0d02aa3fa829e1fef62b0d59fcdb0 (diff) |
crash fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@2184 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/extraicons/IcolibExtraIcon.cpp | 3 |
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 };
|