From e254312f9a660c83081ce2062ab14ba3c3614089 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 19 Sep 2017 14:12:58 +0300 Subject: useless structure GCDEST finally removed --- plugins/RecentContacts/src/RecentContacts.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/RecentContacts/src') diff --git a/plugins/RecentContacts/src/RecentContacts.cpp b/plugins/RecentContacts/src/RecentContacts.cpp index c88932e102..f89b112c78 100644 --- a/plugins/RecentContacts/src/RecentContacts.cpp +++ b/plugins/RecentContacts/src/RecentContacts.cpp @@ -476,8 +476,8 @@ static void SaveLastUsedTimeStamp(MCONTACT hContact) static int OnGCInEvent(WPARAM, LPARAM lParam) { GCEVENT *gce = (GCEVENT*)lParam; - if (gce->pDest->iType == GC_EVENT_MESSAGE) { - SESSION_INFO *si = pci->SM_FindSession(gce->pDest->ptszID, gce->pDest->pszModule); + if (gce->iType == GC_EVENT_MESSAGE) { + SESSION_INFO *si = pci->SM_FindSession(gce->ptszID, gce->pszModule); if (si && si->hContact) { // skip old events if (gce->time && gce->time <= GetLastUsedTimeStamp(si->hContact)) @@ -491,8 +491,8 @@ static int OnGCInEvent(WPARAM, LPARAM lParam) static int OnGCOutEvent(WPARAM, LPARAM lParam) { GCEVENT *gce = (GCEVENT*)lParam; - if (gce->pDest->iType == GC_USER_MESSAGE) { - SESSION_INFO *si = pci->SM_FindSession(gce->pDest->ptszID, gce->pDest->pszModule); + if (gce->iType == GC_USER_MESSAGE) { + SESSION_INFO *si = pci->SM_FindSession(gce->ptszID, gce->pszModule); if (si && si->hContact) SaveLastUsedTimeStamp(si->hContact); } -- cgit v1.2.3