From 8f011598915d395c8e33d2592a06b7507cf18d67 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 23 Jun 2014 20:38:00 +0000 Subject: code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@9561 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/modules/metacontacts/meta_services.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src') 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; -- cgit v1.2.3