From 10bc9e42dfba6ed8be41199243d688c2e367dc0d Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 30 Jun 2015 18:59:38 +0000 Subject: MS_CLIST_GETSTATUSMODEDESCRIPTION & MS_CLIST_GETCONTACTDISPLAYNAME replaced with pcli->* members git-svn-id: http://svn.miranda-ng.org/main/trunk@14459 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/New_GPG/src/utilities.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'plugins/New_GPG/src/utilities.cpp') diff --git a/plugins/New_GPG/src/utilities.cpp b/plugins/New_GPG/src/utilities.cpp index 356657bb19..a3fceecef4 100755 --- a/plugins/New_GPG/src/utilities.cpp +++ b/plugins/New_GPG/src/utilities.cpp @@ -351,13 +351,13 @@ int onProtoAck(WPARAM w, LPARAM l) dbsetting += "_Password"; pass = UniGetContactSettingUtf(NULL, szGPGModuleName, dbsetting.c_str(), _T("")); if(mir_tstrlen(pass) > 0 && bDebugLog) - debuglog<hContact, GCDNF_TCHAR))+" with password"); + debuglog<pfnGetContactDisplayName(ack->hContact, 0))+" with password"); } else { pass = UniGetContactSettingUtf(NULL, szGPGModuleName, "szKeyPassword", _T("")); if(mir_tstrlen(pass) > 0 && bDebugLog) - debuglog<hContact, GCDNF_TCHAR))+" with password"); + debuglog<pfnGetContactDisplayName(ack->hContact, 0))+" with password"); } if(mir_tstrlen(pass) > 0) { @@ -367,12 +367,12 @@ int onProtoAck(WPARAM w, LPARAM l) else if(password) { if(bDebugLog) - debuglog<hContact, GCDNF_TCHAR))+" with password"); + debuglog<pfnGetContactDisplayName(ack->hContact, 0))+" with password"); cmd.push_back(L"--passphrase"); cmd.push_back(password); } else if (bDebugLog) - debuglog<hContact, GCDNF_TCHAR))+" with out password"); + debuglog<pfnGetContactDisplayName(ack->hContact, 0))+" with out password"); mir_free(pass); mir_free(keyid); } @@ -387,7 +387,7 @@ int onProtoAck(WPARAM w, LPARAM l) while(out.find("public key decryption failed: bad passphrase") != string::npos) { if(bDebugLog) - debuglog<hContact, GCDNF_TCHAR))+" password needed, trying to get one"); + debuglog<pfnGetContactDisplayName(ack->hContact, 0))+" password needed, trying to get one"); if(_terminate) break; { //save inkey id @@ -408,7 +408,7 @@ int onProtoAck(WPARAM w, LPARAM l) if(password) { if(bDebugLog) - debuglog<hContact, GCDNF_TCHAR))); + debuglog<pfnGetContactDisplayName(ack->hContact, 0))); std::vector tmp; tmp.push_back(L"--passphrase"); tmp.push_back(password); @@ -1065,7 +1065,7 @@ bool isContactSecured(MCONTACT hContact) if(!gpg_enc) { if(bDebugLog) - debuglog<pfnGetContactDisplayName(hContact, 0))); return false; } if(!db_mc_isMeta(hContact)) @@ -1075,13 +1075,13 @@ bool isContactSecured(MCONTACT hContact) { mir_free(key); if(bDebugLog) - debuglog<pfnGetContactDisplayName(hContact, 0))); return false; } mir_free(key); } if(bDebugLog) - debuglog<pfnGetContactDisplayName(hContact, 0))); return true; } -- cgit v1.2.3