diff options
-rw-r--r-- | tipper/subst.cpp | 4 |
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;
|