From c874769aaa91b110d87eb7b8d267680eb2008bbf Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 7 Apr 2013 21:56:20 +0000 Subject: Sessions: contacts are HANDLEs, not DWORDs git-svn-id: http://svn.miranda-ng.org/main/trunk@4381 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Sessions/Src/Utils.cpp | 250 ++++++++++++++++------------------------- 1 file changed, 96 insertions(+), 154 deletions(-) (limited to 'plugins/Sessions/Src/Utils.cpp') diff --git a/plugins/Sessions/Src/Utils.cpp b/plugins/Sessions/Src/Utils.cpp index d2f5c58c12..480c8d3c0f 100644 --- a/plugins/Sessions/Src/Utils.cpp +++ b/plugins/Sessions/Src/Utils.cpp @@ -17,55 +17,43 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ - #include "sessions.h" -void AddSessionMark(HANDLE hContact,int mode,char bit) +void AddSessionMark(HANDLE hContact, int mode, char bit) { + DBVARIANT dbv; unsigned int i; char temp_1[1]={'\0'},temp_2[1]={'\0'}; char szDst[256]={'\0'}; char* pszBuffer=NULL; - if (mode==0) - { - DBVARIANT dbv; - if (!db_get_s(hContact, MODNAME, "LastSessionsMarks", &dbv) && dbv.pszVal) - { + if (mode == 0) { + if (!db_get_s(hContact, MODNAME, "LastSessionsMarks", &dbv) && dbv.pszVal) { temp_1[0]=dbv.pszVal[0]; - for (i=0;i