summaryrefslogtreecommitdiff
path: root/protocols/GTalkExt/src
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/GTalkExt/src')
-rw-r--r--protocols/GTalkExt/src/db.cpp2
-rw-r--r--protocols/GTalkExt/src/inbox.cpp2
-rw-r--r--protocols/GTalkExt/src/popups.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/protocols/GTalkExt/src/db.cpp b/protocols/GTalkExt/src/db.cpp
index a1658dbdcf..27290afafb 100644
--- a/protocols/GTalkExt/src/db.cpp
+++ b/protocols/GTalkExt/src/db.cpp
@@ -92,7 +92,7 @@ void RenewPseudocontactHandles()
HANDLE hContact = db_find_first();
while (hContact) {
if (DBGetContactSettingByte(hContact, SHORT_PLUGIN_NAME, PSEUDOCONTACT_FLAG, 0)) {
- LPCSTR proto = (LPCSTR)CallService(MS_PROTO_GETCONTACTBASEPROTO, (WPARAM)hContact, 0);
+ LPCSTR proto = (LPCSTR)GetContactProto(hContact);
DBWriteContactSettingDword(0, proto, PSEUDOCONTACT_LINK, (DWORD)hContact);
}
hContact = db_find_next(hContact);
diff --git a/protocols/GTalkExt/src/inbox.cpp b/protocols/GTalkExt/src/inbox.cpp
index 53a4aa2fcb..e52939aa10 100644
--- a/protocols/GTalkExt/src/inbox.cpp
+++ b/protocols/GTalkExt/src/inbox.cpp
@@ -382,7 +382,7 @@ LPTSTR CraftInboxUrl(LPTSTR jid)
void OpenContactInbox(HANDLE hContact)
{
- LPSTR acc = (LPSTR)CallService(MS_PROTO_GETCONTACTBASEPROTO, (WPARAM)hContact, 0);
+ LPSTR acc = GetContactProto(hContact);
if (!acc) return;
DBVARIANT dbv;
diff --git a/protocols/GTalkExt/src/popups.cpp b/protocols/GTalkExt/src/popups.cpp
index 99ab94470b..0f0b6c2d04 100644
--- a/protocols/GTalkExt/src/popups.cpp
+++ b/protocols/GTalkExt/src/popups.cpp
@@ -47,7 +47,7 @@ LRESULT CALLBACK PopupHookProc(int nCode, WPARAM wParam, LPARAM lParam)
if (hContact != (HANDLE)-1 &&
hContact != (HANDLE)0x80000000 &&
DBGetContactSettingByte(hContact, SHORT_PLUGIN_NAME, PSEUDOCONTACT_FLAG, 0)) {
- LPCSTR proto = (LPCSTR)CallService(MS_PROTO_GETCONTACTBASEPROTO, (WPARAM)hContact, 0);
+ LPCSTR proto = (LPCSTR)GetContactProto(hContact);
DWORD checkboxes = ReadCheckboxes(0, proto);
if (ReadCheckbox(0, IDC_PSEUDOCONTACTENABLED, checkboxes) &&
ReadCheckbox(0, IDC_SUPRESSFOREIGN, checkboxes))