summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorslotwin <slotwin@users.noreply.github.com>2015-02-25 15:18:01 +0000
committerslotwin <slotwin@users.noreply.github.com>2015-02-25 15:18:01 +0000
commit9685c81f98e6dd0d408b9d8ca9ec2c325d736eb6 (patch)
tree5220e0c46cb996ccf10f8070053fa8848234ae42
parent0b8e449fdc1071348dd62c412d147ad025439e85 (diff)
Get proper status message for protocol instead of global
git-svn-id: http://svn.miranda-ng.org/main/trunk@12264 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--plugins/MyDetails/src/data.cpp2
-rw-r--r--plugins/TipperYM/src/subst.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/MyDetails/src/data.cpp b/plugins/MyDetails/src/data.cpp
index 8451c124d5..5b6a23001e 100644
--- a/plugins/MyDetails/src/data.cpp
+++ b/plugins/MyDetails/src/data.cpp
@@ -219,7 +219,7 @@ void Protocol::GetStatusMsg(int aStatus, TCHAR *msg, size_t msg_size)
lcopystr(msg, tmp == NULL ? _T("") : tmp, msg_size);
}
else if (ServiceExists(MS_AWAYMSG_GETSTATUSMSGT)) {
- ptrT tmp((TCHAR*)CallService(MS_AWAYMSG_GETSTATUSMSGT, (WPARAM)aStatus, 0));
+ ptrT tmp((TCHAR *)CallService(MS_AWAYMSG_GETSTATUSMSGT, (WPARAM)aStatus, (LPARAM)name));
lcopystr(msg, tmp == NULL ? _T("") : tmp, msg_size);
}
}
diff --git a/plugins/TipperYM/src/subst.cpp b/plugins/TipperYM/src/subst.cpp
index 4bf6c42d4c..d5f9869211 100644
--- a/plugins/TipperYM/src/subst.cpp
+++ b/plugins/TipperYM/src/subst.cpp
@@ -705,7 +705,7 @@ TCHAR *GetProtoStatusMessage(char *szProto, WORD wStatus)
TCHAR *swzText = (TCHAR *)CallProtoService(szProto, PS_GETMYAWAYMSG, 0, SGMA_TCHAR);
if ((INT_PTR)swzText == CALLSERVICE_NOTFOUND)
- swzText = (TCHAR*)CallService(MS_AWAYMSG_GETSTATUSMSGT, wStatus, 0);
+ swzText = (TCHAR *)CallService(MS_AWAYMSG_GETSTATUSMSGT, wStatus, (LPARAM)szProto);
else if (swzText == NULL) {
// try to use service without SGMA_TCHAR