From 3c00a78191f46c10f036c789a9ef358f0e049d61 Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Wed, 16 Sep 2015 18:52:29 +0000 Subject: Tox: - attempt to fix numerous crashes git-svn-id: http://svn.miranda-ng.org/main/trunk@15366 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Tox/src/tox_chatrooms.cpp | 22 ++++------------------ 1 file changed, 4 insertions(+), 18 deletions(-) (limited to 'protocols/Tox/src/tox_chatrooms.cpp') diff --git a/protocols/Tox/src/tox_chatrooms.cpp b/protocols/Tox/src/tox_chatrooms.cpp index 0ae894be98..08195104c0 100644 --- a/protocols/Tox/src/tox_chatrooms.cpp +++ b/protocols/Tox/src/tox_chatrooms.cpp @@ -80,36 +80,22 @@ int CToxProto::OnGroupChatEventHook(WPARAM, LPARAM lParam) { return 1; } - else if (mir_strcmp(gch->pDest->pszModule, this->m_szModuleName) != 0) - { + else return 0; - } - return 0; } -int CToxProto::OnGroupChatMenuHook(WPARAM, LPARAM lParam) +int CToxProto::OnGroupChatMenuHook(WPARAM, LPARAM) { - GCMENUITEMS *gcmi = (GCMENUITEMS*)lParam; - if (mir_strcmpi(gcmi->pszModule, this->m_szModuleName) != 0) - { - return 0; - } return 0; } -INT_PTR CToxProto::OnJoinChatRoom(WPARAM hContact, LPARAM) +INT_PTR CToxProto::OnJoinChatRoom(WPARAM, LPARAM) { - if (hContact) - { - } return 0; } -INT_PTR CToxProto::OnLeaveChatRoom(WPARAM hContact, LPARAM) +INT_PTR CToxProto::OnLeaveChatRoom(WPARAM, LPARAM) { - if (hContact) - { - } return 0; } -- cgit v1.2.3