diff options
-rw-r--r-- | src/modules/metacontacts/meta_services.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/modules/metacontacts/meta_services.cpp b/src/modules/metacontacts/meta_services.cpp index 01fc809867..aa2f609da8 100644 --- a/src/modules/metacontacts/meta_services.cpp +++ b/src/modules/metacontacts/meta_services.cpp @@ -123,11 +123,8 @@ INT_PTR Meta_LoadIcon(WPARAM wParam,LPARAM lParam) static INT_PTR MetaFilter_RecvMessage(WPARAM wParam, LPARAM lParam)
{
CCSDATA *ccs = (CCSDATA*)lParam;
- PROTORECVEVENT *pre = (PROTORECVEVENT *)ccs->lParam;
DBCachedContact *cc = currDb->m_cache->GetCachedContact(ccs->hContact);
- if (cc == NULL)
- return 0;
- if (cc->IsSub()) {
+ if (cc && cc->IsSub()) {
MetaSrmmData tmp = { cc->parentID };
if (MetaSrmmData *p = arMetaWindows.find(&tmp))
p->m_hSub = cc->contactID;
|