From 27e2debb9e21eab7cf33c1e862275a2fd69c56e2 Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Tue, 11 Sep 2012 02:22:35 +0300 Subject: modified: src/utilities.cpp --- src/utilities.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src') 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 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]) -- cgit v1.2.3