summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-06-23 20:38:00 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-06-23 20:38:00 +0000
commit8f011598915d395c8e33d2592a06b7507cf18d67 (patch)
tree864303853d116a194c36c981bd4a2e8c03186c9e /src
parent37a3130638a43029a072fcef77dd3afb88e0e029 (diff)
code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@9561 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src')
-rw-r--r--src/modules/metacontacts/meta_services.cpp5
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;