diff options
author | George Hazan <george.hazan@gmail.com> | 2012-07-20 08:26:15 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-07-20 08:26:15 +0000 |
commit | c92e6fa7468cfbbf0e05e611ba0790307fbd953a (patch) | |
tree | e5443fc6c7381a577f1e53af03e2778a616d5a7e /plugins/MyDetails | |
parent | c1c83bf5790a1adfeccd1e948e321ac3a7e3e54c (diff) |
andalso another accounts related code fixed
git-svn-id: http://svn.miranda-ng.org/main/trunk@1067 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MyDetails')
-rw-r--r-- | plugins/MyDetails/data.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/plugins/MyDetails/data.cpp b/plugins/MyDetails/data.cpp index ffe701cccd..c29af17ed0 100644 --- a/plugins/MyDetails/data.cpp +++ b/plugins/MyDetails/data.cpp @@ -196,21 +196,21 @@ void Protocol::SetStatus(int aStatus) // BEGIN From commomstatus.cpp (KeepStatus)
int i, count, pCount;
- PROTOCOLDESCRIPTOR **protos;
+ PROTOACCOUNT **accs;
pCount = 0;
- CallService(MS_PROTO_ENUMPROTOCOLS,(WPARAM)&count,(LPARAM)&protos);
- for (i=0;i<count;i++) {
- if (protos[i]->type!=PROTOTYPE_PROTOCOL || CallProtoService(protos[i]->szName,PS_GETCAPS,PFLAGNUM_2,0)==0) continue;
- pCount += 1;
+ CallService(MS_PROTO_ENUMPROTOCOLS,(WPARAM)&count,(LPARAM)&accs);
+ for (i=0; i < count; i++) {
+ if (accs[i]->type != PROTOTYPE_PROTOCOL || CallProtoService(accs[i]->szModuleName,PS_GETCAPS,PFLAGNUM_2,0)==0)
+ continue;
+ pCount++;
}
// END From commomstatus.cpp (KeepStatus)
PROTOCOLSETTINGEX **pse = (PROTOCOLSETTINGEX **) mir_alloc0(pCount * sizeof(PROTOCOLSETTINGEX *));
- for (i = 0; i < pCount; i++)
- {
+ for (i = 0; i < pCount; i++) {
pse[i] = (PROTOCOLSETTINGEX *) mir_alloc0(sizeof(PROTOCOLSETTINGEX));
pse[i]->szName = "";
}
|