summaryrefslogtreecommitdiff
path: root/protocols/Skype/src
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Skype/src')
-rw-r--r--protocols/Skype/src/skype_chat.cpp2
-rw-r--r--protocols/Skype/src/skype_chat.h2
-rw-r--r--protocols/Skype/src/skype_proto.cpp4
3 files changed, 4 insertions, 4 deletions
diff --git a/protocols/Skype/src/skype_chat.cpp b/protocols/Skype/src/skype_chat.cpp
index cfc6bb4aab..e0f76365c2 100644
--- a/protocols/Skype/src/skype_chat.cpp
+++ b/protocols/Skype/src/skype_chat.cpp
@@ -140,7 +140,7 @@ ChatRoom::~ChatRoom()
this->members.destroy();
}
-HANDLE ChatRoom::GetContactHandle() const
+HCONTACT ChatRoom::GetContactHandle() const
{
return this->hContact;
}
diff --git a/protocols/Skype/src/skype_chat.h b/protocols/Skype/src/skype_chat.h
index eb5e7d432e..e5e775f980 100644
--- a/protocols/Skype/src/skype_chat.h
+++ b/protocols/Skype/src/skype_chat.h
@@ -158,7 +158,7 @@ public:
ChatRoom(const wchar_t *cid, const wchar_t *name, CSkypeProto *ppro);
~ChatRoom();
- HANDLE GetContactHandle() const;
+ HCONTACT GetContactHandle() const;
void SetTopic(const wchar_t *topic);
wchar_t *GetUri();
diff --git a/protocols/Skype/src/skype_proto.cpp b/protocols/Skype/src/skype_proto.cpp
index 01f3f43e23..c1d745185e 100644
--- a/protocols/Skype/src/skype_proto.cpp
+++ b/protocols/Skype/src/skype_proto.cpp
@@ -80,7 +80,7 @@ int __cdecl CSkypeProto::Authorize(HANDLE hDbEvent)
if (this->IsOnline() && hDbEvent)
{
HCONTACT hContact = this->GetContactFromAuthEvent(hDbEvent);
- if (hContact == INVALID_HANDLE_VALUE)
+ if (hContact == (HCONTACT)INVALID_HANDLE_VALUE)
return 1;
return CSkypeProto::GrantAuth((WPARAM)hContact, NULL);
@@ -94,7 +94,7 @@ int __cdecl CSkypeProto::AuthDeny(HANDLE hDbEvent, const TCHAR* szReason)
if (this->IsOnline())
{
HCONTACT hContact = this->GetContactFromAuthEvent(hDbEvent);
- if (hContact == INVALID_HANDLE_VALUE)
+ if (hContact == (HCONTACT)INVALID_HANDLE_VALUE)
return 1;
return CSkypeProto::RevokeAuth((WPARAM)hContact, NULL);