From bd8a04455d9c991c15df2287e091abe4ba054efb Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 25 Nov 2012 12:54:45 +0000 Subject: typed stub for MS_PROTO_GETCONTACTBASEPROTO git-svn-id: http://svn.miranda-ng.org/main/trunk@2480 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/GTalkExt/src/db.cpp | 2 +- protocols/GTalkExt/src/inbox.cpp | 2 +- protocols/GTalkExt/src/popups.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'protocols/GTalkExt') 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)) -- cgit v1.2.3