diff options
Diffstat (limited to 'protocols/SkypeWeb')
-rw-r--r-- | protocols/SkypeWeb/src/skype_avatars.cpp | 3 | ||||
-rw-r--r-- | protocols/SkypeWeb/src/skype_contacts.cpp | 4 | ||||
-rw-r--r-- | 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);
}
|