From d8b72cf2b8ab77898b0411c1046e788d7bc7bfa9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Tue, 2 Dec 2014 13:23:44 +0000 Subject: Facebook: Fix warning in x64 compilation git-svn-id: http://svn.miranda-ng.org/main/trunk@11215 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/FacebookRM/src/proto.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'protocols') diff --git a/protocols/FacebookRM/src/proto.cpp b/protocols/FacebookRM/src/proto.cpp index 8d76eb94f7..4fdc637bed 100644 --- a/protocols/FacebookRM/src/proto.cpp +++ b/protocols/FacebookRM/src/proto.cpp @@ -536,16 +536,18 @@ INT_PTR FacebookProto::OnMind(WPARAM wParam, LPARAM lParam) return 0; } -int FacebookProto::OnDbEventRead(WPARAM contactID, LPARAM dbei) +int FacebookProto::OnDbEventRead(WPARAM wParam, LPARAM lParam) { - if (isOffline() || !IsMyContact(contactID, false)) // ignore chats + MCONTACT hContact = (MCONTACT)wParam; + + if (isOffline() || !IsMyContact(hContact, false)) // ignore chats return 0; - if (facy.ignore_read.find(contactID) != facy.ignore_read.end()) + if (facy.ignore_read.find(hContact) != facy.ignore_read.end()) return 0; // it's there, so we ignore this std::set *hContacts = new std::set(); - hContacts->insert(contactID); + hContacts->insert(hContact); ForkThread(&FacebookProto::ReadMessageWorker, (void*)hContacts); -- cgit v1.2.3