From 9fc5ea1dd35c7115d34f9a1372ab4d2e6d966002 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 22 Jan 2014 22:17:00 +0000 Subject: one more check git-svn-id: http://svn.miranda-ng.org/main/trunk@7834 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/modules/utils/windowlist.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/utils/windowlist.cpp b/src/modules/utils/windowlist.cpp index 667af0322d..29569ff93e 100644 --- a/src/modules/utils/windowlist.cpp +++ b/src/modules/utils/windowlist.cpp @@ -50,10 +50,10 @@ static INT_PTR DestroyWindowList(WPARAM wParam, LPARAM) static INT_PTR AddToWindowList(WPARAM, LPARAM lParam) { - if (lParam == 0) return 1; WINDOWLISTENTRY *pEntry = (WINDOWLISTENTRY*)lParam; TWindowList *pList = (TWindowList*)pEntry->hList; - pList->insert(new TWindowListItem(pEntry->hContact, pEntry->hwnd)); + if (pList != NULL) + pList->insert(new TWindowListItem(pEntry->hContact, pEntry->hwnd)); return 0; } -- cgit v1.2.3