From 30ab6ceb71842f003f649b3d62b89af010cf40d1 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 20 Jun 2012 17:00:14 +0000 Subject: - direct call of MS_SKIN_ADDNEWSOUND replaced with Skin_AddSound() call; - obsolete structure SKINSOUNDDESC removed - dynamically translated hot keys; - checked correct LPGEN'ing of the sounds creation; - code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@500 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/SecureIM/crypt_lists.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'plugins/SecureIM/crypt_lists.cpp') diff --git a/plugins/SecureIM/crypt_lists.cpp b/plugins/SecureIM/crypt_lists.cpp index f71398e4b4..7b68fbd250 100644 --- a/plugins/SecureIM/crypt_lists.cpp +++ b/plugins/SecureIM/crypt_lists.cpp @@ -86,8 +86,8 @@ void MoveToFirstInFilterList(HANDLE hContact) { for(i=0;;i++) { mir_itoa(i,str,10); - if ( DBGetContactSettingString(hContact,"_Filter",str,&dbv) ) break; - if ( !strcmp(szModuleName,dbv.pszVal) ) { // нашли мой модуль + if ( DBGetContactSettingString(hContact,"_Filter",str,&dbv)) break; + if ( !strcmp(szModuleName,dbv.pszVal)) { // нашли мой модуль if ( i==0 ) return; DBGetContactSettingString(hContact,"_Filter","0",&dbv); DBWriteContactSettingString(hContact,"_Filter","0",szModuleName); @@ -108,8 +108,8 @@ void MoveToLastInFilterList(HANDLE hContact) { for(i=0;;i++) { mir_itoa(i,str,10); - if ( DBGetContactSettingString(hContact,"_Filter",str,&dbv) ) break; - if ( !strcmp(szModuleName,dbv.pszVal) ) { // нашли мой модуль + if ( DBGetContactSettingString(hContact,"_Filter",str,&dbv)) break; + if ( !strcmp(szModuleName,dbv.pszVal)) { // нашли мой модуль j=i; } mir_free(dbv.pszVal); @@ -133,7 +133,7 @@ pUinKey addContact(HANDLE hContact) { // LPSTR szProto = (LPSTR) CallService(MS_PROTO_GETCONTACTBASEPROTO, (WPARAM)hContact, 0); pSupPro proto = getSupPro(hContact); if ( proto ) { - if ( !CallService(MS_PROTO_ISPROTOONCONTACT, (WPARAM)hContact, (LPARAM)szModuleName) ) + if ( !CallService(MS_PROTO_ISPROTOONCONTACT, (WPARAM)hContact, (LPARAM)szModuleName)) CallService(MS_PROTO_ADDTOCONTACT, (WPARAM)hContact, (LPARAM)szModuleName); MoveToLastInFilterList(hContact); for(j=0;j