diff options
author | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2012-09-11 02:22:35 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2012-09-11 02:22:35 +0300 |
commit | 27e2debb9e21eab7cf33c1e862275a2fd69c56e2 (patch) | |
tree | c52a1ece4ad8371836e14e88cee9dc73ef9570a1 | |
parent | 413f5a1f2d643b4f76a8f01be314119f31ca0ca7 (diff) |
modified: src/utilities.cpp
-rwxr-xr-x | src/utilities.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/utilities.cpp b/src/utilities.cpp index 54cee7a..e4072c9 100755 --- a/src/utilities.cpp +++ b/src/utilities.cpp @@ -179,7 +179,7 @@ void GetFolderPath(TCHAR *WindowTittle, char *szSetting) } } -int LoadKey(WPARAM w, LPARAM l) +INT_PTR LoadKey(WPARAM w, LPARAM l) { void ShowLoadPublicKeyDialog(); extern map<int, HANDLE> user_data; @@ -190,7 +190,7 @@ int LoadKey(WPARAM w, LPARAM l) return 0; } -int SendKey(WPARAM w, LPARAM l) +INT_PTR SendKey(WPARAM w, LPARAM l) { HANDLE hContact = (HANDLE)w; if(metaIsProtoMetaContacts(hContact)) @@ -208,7 +208,7 @@ int SendKey(WPARAM w, LPARAM l) acc_str += ")" ; acc_str += "_GPGPubKey"; } - char *szMessage = UniGetContactSettingUtf(hContact, szGPGModuleName, acc_str.empty()?"GPGPubKey":acc_str.c_str(), ""); + szMessage = UniGetContactSettingUtf(hContact, szGPGModuleName, acc_str.empty()?"GPGPubKey":acc_str.c_str(), ""); } if(szMessage[0]) { @@ -224,7 +224,7 @@ int SendKey(WPARAM w, LPARAM l) extern HANDLE hLoadPublicKey, hToggleEncryption; -int ToggleEncryption(WPARAM w, LPARAM l) +INT_PTR ToggleEncryption(WPARAM w, LPARAM l) { HANDLE hContact = (HANDLE)w; BYTE enc = 0; @@ -1338,7 +1338,7 @@ bool isTabsrmmUsed() } -int ExportGpGKeys(WPARAM w, LPARAM l) +INT_PTR ExportGpGKeys(WPARAM w, LPARAM l) { TCHAR *p = GetFilePath(_T("Choose file to export public keys"), _T("*"), _T("Any file"), true); if(!p || !p[0]) @@ -1501,7 +1501,7 @@ int ExportGpGKeys(WPARAM w, LPARAM l) return 0; } -int ImportGpGKeys(WPARAM w, LPARAM l) +INT_PTR ImportGpGKeys(WPARAM w, LPARAM l) { TCHAR *p = GetFilePath(_T("Choose file to import keys from"), _T("*"), _T("Any file")); if(!p || !p[0]) |