diff options
author | Gluzskiy Alexandr <sss123next@list.ru> | 2010-08-23 20:23:34 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss123next@list.ru> | 2010-08-23 20:23:34 +0300 |
commit | b8ab705f6fe2df0ce3aebe5749521f768d4df5e8 (patch) | |
tree | 2011c3dbd93a20c668923053df1b73863d21df23 /utilities.cpp | |
parent | 8983afc0314cb42ddc7ff709b78ae32b6fd1f900 (diff) |
modified: icons.cpp
modified: init.cpp
modified: utilities.cpp
Diffstat (limited to 'utilities.cpp')
-rw-r--r-- | utilities.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/utilities.cpp b/utilities.cpp index 6f5a654..fb522b6 100644 --- a/utilities.cpp +++ b/utilities.cpp @@ -486,8 +486,13 @@ void AddHandlers() bool isContactSecured(HANDLE hContact) { - if(DBGetContactSettingByte(hContact, szGPGModuleName, "GPGEncryption", 0)) + TCHAR *key = UniGetContactSettingUtf(hContact, szGPGModuleName, "GPGPubKey", _T("")); + if(DBGetContactSettingByte(hContact, szGPGModuleName, "GPGEncryption", 0) && (_tcslen(key) > 1)) + { + mir_free(key); return true; + } + mir_free(key); return false; } |