From 1a1264bf4fb2ebd9dbf445662b9e8a4e38081e05 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 21 Nov 2012 11:18:51 +0000 Subject: fix for setting a status git-svn-id: http://svn.miranda-ng.org/main/trunk@2411 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/CSList/src/cslist.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins') diff --git a/plugins/CSList/src/cslist.cpp b/plugins/CSList/src/cslist.cpp index 87d44c05a7..73bb20ede4 100644 --- a/plugins/CSList/src/cslist.cpp +++ b/plugins/CSList/src/cslist.cpp @@ -246,17 +246,17 @@ void CSList::rebuildMenuItems( ) } -void CSList::setStatus( WORD code, StatusItem* item, char* protoName) +void CSList::setStatus(WORD code, StatusItem* item, char* szAccName) { if ( code == IDCLOSE ) return; - PROTOACCOUNT* pdescr = (PROTOACCOUNT*)CallService(MS_PROTO_GETACCOUNT, 0, (LPARAM)protoName); + PROTOACCOUNT* pdescr = (PROTOACCOUNT*)CallService(MS_PROTO_GETACCOUNT, 0, (LPARAM)szAccName); if (pdescr == NULL) return; char szService[100]; - mir_snprintf(szService, SIZEOF(szService), "%s%s", pdescr->szProtoName, PS_SETCUSTOMSTATUSEX); + mir_snprintf(szService, SIZEOF(szService), "%s%s", szAccName, PS_SETCUSTOMSTATUSEX); int statusToSet = -1; if ( ServiceExists(szService)) { -- cgit v1.2.3