From 05a5fe56ad2c01f3959176bb164bfe12eeac3c8d Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 26 Aug 2015 11:23:00 +0000 Subject: warning fixes git-svn-id: http://svn.miranda-ng.org/main/trunk@15034 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/SkypeWeb/src/skype_avatars.cpp | 3 ++- protocols/SkypeWeb/src/skype_contacts.cpp | 4 ++-- protocols/SkypeWeb/src/skype_messages.cpp | 7 +++---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/protocols/SkypeWeb/src/skype_avatars.cpp b/protocols/SkypeWeb/src/skype_avatars.cpp index d570055fe7..b306a3d4a0 100644 --- a/protocols/SkypeWeb/src/skype_avatars.cpp +++ b/protocols/SkypeWeb/src/skype_avatars.cpp @@ -58,7 +58,8 @@ void CSkypeProto::OnReceiveAvatar(const NETLIBHTTPREQUEST *response, void *arg) { if (response == NULL || response->pData == NULL) return; - MCONTACT hContact = (MCONTACT)arg; + + MCONTACT hContact = (DWORD_PTR)arg; if (response->resultCode != 200) return; diff --git a/protocols/SkypeWeb/src/skype_contacts.cpp b/protocols/SkypeWeb/src/skype_contacts.cpp index 3444845d76..81bcc6bc2f 100644 --- a/protocols/SkypeWeb/src/skype_contacts.cpp +++ b/protocols/SkypeWeb/src/skype_contacts.cpp @@ -334,7 +334,7 @@ INT_PTR CSkypeProto::BlockContact(WPARAM hContact, LPARAM) void CSkypeProto::OnBlockContact(const NETLIBHTTPREQUEST *response, void *p) { - MCONTACT hContact = (MCONTACT)p; + MCONTACT hContact = (DWORD_PTR)p; if (response == NULL) return; db_set_dw(hContact, "Ignore", "Mask1", 127); @@ -349,7 +349,7 @@ INT_PTR CSkypeProto::UnblockContact(WPARAM hContact, LPARAM) void CSkypeProto::OnUnblockContact(const NETLIBHTTPREQUEST *response, void *p) { - MCONTACT hContact = (MCONTACT)p; + MCONTACT hContact = (DWORD_PTR)p; if (response == NULL) return; db_set_dw(hContact, "Ignore", "Mask1", 0); diff --git a/protocols/SkypeWeb/src/skype_messages.cpp b/protocols/SkypeWeb/src/skype_messages.cpp index d3873a97c0..78798c1432 100644 --- a/protocols/SkypeWeb/src/skype_messages.cpp +++ b/protocols/SkypeWeb/src/skype_messages.cpp @@ -311,11 +311,10 @@ void CSkypeProto::ProcessContactRecv(MCONTACT hContact, time_t timestamp, const pre.lParam = (LPARAM)b; ProtoChainRecv(hContact, PSR_CONTACTS, 0, (LPARAM)&pre); - for (nCount = 0; nCount < *((PDWORD)b); nCount++) + for (DWORD i = 0; i < *((PDWORD)b); i++) { - mir_free(psr[nCount]->id.t); - //mir_free(psr[nCount]->nick.t); - mir_free(psr[nCount]); + mir_free(psr[i]->id.t); + mir_free(psr[i]); } mir_free(b); } -- cgit v1.2.3