summaryrefslogtreecommitdiff
path: root/tipper/subst.cpp
diff options
context:
space:
mode:
author(no author) <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10>2010-09-06 18:28:45 +0000
committer(no author) <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10>2010-09-06 18:28:45 +0000
commit6b7b2beb5c302331cc4e2f484ff4098719b11cc4 (patch)
tree1b317cb4a8c102f274fb80e30a0877b8b6008642 /tipper/subst.cpp
parent2754b2fba973e2b613ec5ecce1b549450d67acc9 (diff)
Added support for accounts
git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@530 4f64403b-2f21-0410-a795-97e2b3489a10
Diffstat (limited to 'tipper/subst.cpp')
-rw-r--r--tipper/subst.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tipper/subst.cpp b/tipper/subst.cpp
index f766116..439c0f7 100644
--- a/tipper/subst.cpp
+++ b/tipper/subst.cpp
@@ -239,9 +239,9 @@ bool GetSysSubstText(HANDLE hContact, TCHAR *raw_spec, TCHAR *buff, int bufflen)
HANDLE hSubContact = (HANDLE)CallService(MS_MC_GETMOSTONLINECONTACT, (WPARAM)hContact, 0);
if (!hSubContact || (INT_PTR)hSubContact == CALLSERVICE_NOTFOUND) return false;
- char *szProto = (char*)CallService(MS_PROTO_GETCONTACTBASEACCOUNT, (WPARAM)hContact, 0);
+ char *szProto = (char*)CallService(MS_PROTO_GETCONTACTBASEACCOUNT, (WPARAM)hSubContact, 0);
if ((INT_PTR)szProto == CALLSERVICE_NOTFOUND) {
- szProto = (char*)CallService(MS_PROTO_GETCONTACTBASEPROTO, (WPARAM)hContact, 0);
+ szProto = (char*)CallService(MS_PROTO_GETCONTACTBASEPROTO, (WPARAM)hSubContact, 0);
if (szProto) {
a2t(szProto, buff, bufflen);
return true;