diff options
author | George Hazan <george.hazan@gmail.com> | 2014-01-22 22:17:00 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-01-22 22:17:00 +0000 |
commit | 9fc5ea1dd35c7115d34f9a1372ab4d2e6d966002 (patch) | |
tree | c6f307331b7175a759a565471fda2ba800e407f8 /src/modules/utils | |
parent | b1f964cbef02c1b3f127fb6a91f089c1cd9d0cf4 (diff) |
one more check
git-svn-id: http://svn.miranda-ng.org/main/trunk@7834 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/utils')
-rw-r--r-- | src/modules/utils/windowlist.cpp | 4 |
1 files 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;
}
|