diff options
author | Robert Pösel <robyer@seznam.cz> | 2014-12-02 13:23:44 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2014-12-02 13:23:44 +0000 |
commit | d8b72cf2b8ab77898b0411c1046e788d7bc7bfa9 (patch) | |
tree | d3f33b99df56f92b071f631b4229e28a82335e44 /protocols/FacebookRM/src | |
parent | 45816303e33ecd6b81def2d36124771ee47cbc83 (diff) |
Facebook: Fix warning in x64 compilation
git-svn-id: http://svn.miranda-ng.org/main/trunk@11215 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src')
-rw-r--r-- | protocols/FacebookRM/src/proto.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
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<MCONTACT> *hContacts = new std::set<MCONTACT>(); - hContacts->insert(contactID); + hContacts->insert(hContact); ForkThread(&FacebookProto::ReadMessageWorker, (void*)hContacts); |