From c92e6fa7468cfbbf0e05e611ba0790307fbd953a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 20 Jul 2012 08:26:15 +0000 Subject: andalso another accounts related code fixed git-svn-id: http://svn.miranda-ng.org/main/trunk@1067 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/MyDetails/data.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'plugins/MyDetails/data.cpp') 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;itype!=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 = ""; } -- cgit v1.2.3