diff options
author | George Hazan <george.hazan@gmail.com> | 2012-11-21 11:18:51 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-11-21 11:18:51 +0000 |
commit | 1a1264bf4fb2ebd9dbf445662b9e8a4e38081e05 (patch) | |
tree | 752c5c886d8c3b719a6f2b23862f4af9b94a5bf8 /plugins/CSList | |
parent | 29672adb52c405f2392bc865ec420551f5c9bb41 (diff) |
fix for setting a status
git-svn-id: http://svn.miranda-ng.org/main/trunk@2411 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/CSList')
-rw-r--r-- | plugins/CSList/src/cslist.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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)) {
|