summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-08-26 11:23:00 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-08-26 11:23:00 +0000
commit05a5fe56ad2c01f3959176bb164bfe12eeac3c8d (patch)
treeef7edff4a1f1d69419f339fe7d7adbf8ec8a9e47 /protocols/SkypeWeb
parent620a8e00fae60a5bef18a000c8bc5a3b98eff6a1 (diff)
warning fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@15034 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb')
-rw-r--r--protocols/SkypeWeb/src/skype_avatars.cpp3
-rw-r--r--protocols/SkypeWeb/src/skype_contacts.cpp4
-rw-r--r--protocols/SkypeWeb/src/skype_messages.cpp7
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);
}