From 9cca190bc3022311915eb1e95b3cc3bb89aed328 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 25 Jan 2020 14:24:53 +0300 Subject: massive code cleaning: - GCHOOK structure normalized (i.e. inlined SESSION_INFO fields replaced with a reference to SESSION_INFO); - fake CMsgDialog declaration added to m_srmm_int.h, thus duplicated declarations in plugins aren't needed anymore - other minor changes --- protocols/Twitter/src/chat.cpp | 2 +- protocols/Twitter/src/stdafx.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'protocols/Twitter') diff --git a/protocols/Twitter/src/chat.cpp b/protocols/Twitter/src/chat.cpp index bf7e1b6c36..a9e75c3392 100644 --- a/protocols/Twitter/src/chat.cpp +++ b/protocols/Twitter/src/chat.cpp @@ -54,7 +54,7 @@ void TwitterProto::UpdateChat(const twitter_user &update) int TwitterProto::OnChatOutgoing(WPARAM, LPARAM lParam) { GCHOOK *hook = reinterpret_cast(lParam); - if (mir_strcmp(hook->pszModule, m_szModuleName)) + if (mir_strcmp(hook->si->pszModule, m_szModuleName)) return 0; switch (hook->iType) { diff --git a/protocols/Twitter/src/stdafx.h b/protocols/Twitter/src/stdafx.h index c543da1301..8317f41793 100644 --- a/protocols/Twitter/src/stdafx.h +++ b/protocols/Twitter/src/stdafx.h @@ -42,7 +42,7 @@ typedef std::basic_string wstring; #include #include #include -#include +#include #include #include #include -- cgit v1.2.3