diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2015-04-27 07:36:58 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2015-04-27 07:36:58 +0000 |
commit | 1319f3775c793bdfb8299f5757e7c198d7a61339 (patch) | |
tree | e132a96411aedeb5b86cdea901b15ff8028f00f5 /plugins/MirOTR/src/otr.cpp | |
parent | fd511dcd6739e2994445833ac8f03f01a2c5df95 (diff) |
ConnectionNotify common project
git-svn-id: http://svn.miranda-ng.org/main/trunk@13191 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirOTR/src/otr.cpp')
-rw-r--r-- | plugins/MirOTR/src/otr.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/MirOTR/src/otr.cpp b/plugins/MirOTR/src/otr.cpp index 0c988da819..d4f560573a 100644 --- a/plugins/MirOTR/src/otr.cpp +++ b/plugins/MirOTR/src/otr.cpp @@ -40,7 +40,7 @@ static unsigned int CALLBACK generate_key_thread(void* param) Thread_Push(0); GenKeyData *data = (GenKeyData *)param; //lib_cs_lock(); - otrl_privkey_generate(otr_user_state, g_private_key_filename, data->proto, data->proto); + otrl_privkey_generate(otr_user_state, _T2A(g_private_key_filename), data->proto, data->proto); //lib_cs_unlock(); PostMessage(data->dialog, WMU_ENDDIALOG, 0, 0); mir_free(data); @@ -165,14 +165,14 @@ extern "C" { //CloseHandle((HANDLE)_beginthreadex(0, 0, trust_fp_thread, (void *)fp, 0, 0)); otrl_context_set_trust(fp, NULL); - otrl_privkey_write_fingerprints(otr_user_state, g_fingerprint_store_filename); + otrl_privkey_write_fingerprints(otr_user_state, _T2A(g_fingerprint_store_filename)); } /* The list of known fingerprints has changed. Write them to disk. */ void otr_gui_write_fingerprints(void *opdata) { DEBUGOUT_T("OTR_GUI_WRITE_FINGERPRINTS\n"); //if(MessageBox(0, Translate("Would you like to save the current fingerprint list?"), Translate(MODULE), MB_YESNO) == IDYES) - otrl_privkey_write_fingerprints(otr_user_state, g_fingerprint_store_filename); + otrl_privkey_write_fingerprints(otr_user_state, _T2A(g_fingerprint_store_filename)); } /* A ConnContext has entered a secure state. */ @@ -389,7 +389,7 @@ extern "C" { void otr_create_instag(void *opdata, const char *accountname, const char *protocol){ DEBUGOUT_T("OTR_CREATE_INSTAG\n"); - FILE* instagf = fopen(g_instag_filename, "w+b"); + FILE* instagf = _tfopen(g_instag_filename, _T("w+b")); if(!instagf) return; otrl_instag_generate_FILEp(otr_user_state, instagf, accountname, protocol); |