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/XSoundNotify/src/xsn_main.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'plugins/XSoundNotify') diff --git a/plugins/XSoundNotify/src/xsn_main.cpp b/plugins/XSoundNotify/src/xsn_main.cpp index 417dd08dbd..c5e132eb39 100644 --- a/plugins/XSoundNotify/src/xsn_main.cpp +++ b/plugins/XSoundNotify/src/xsn_main.cpp @@ -149,16 +149,14 @@ static int ProcessEvent(WPARAM hContact, LPARAM lParam) static int ProcessChatEvent(WPARAM, LPARAM lParam) { GCEVENT *gce = (GCEVENT*)lParam; - if (gce == NULL || gce->pDest == NULL) + if (gce == nullptr) return 0; - - GCDEST *gcd = (GCDEST*)gce->pDest; - if (gcd->iType != GC_EVENT_MESSAGE) + if (gce->iType != GC_EVENT_MESSAGE) return 0; - MCONTACT hContact = pci->FindRoom(gcd->pszModule, gcd->ptszID); + MCONTACT hContact = pci->FindRoom(gce->pszModule, gce->ptszID); if (hContact != 0) { - ptrW nick(db_get_wsa(hContact, gcd->pszModule, "MyNick")); + ptrW nick(db_get_wsa(hContact, gce->pszModule, "MyNick")); if (nick == NULL || gce->ptszText == NULL) return 0; if (wcsstr(gce->ptszText, nick)) { -- cgit v1.2.3