diff options
author | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2013-01-12 09:08:03 +0200 |
---|---|---|
committer | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2013-01-12 09:08:03 +0200 |
commit | 913374a19774643fb97455d0a294a26a93019557 (patch) | |
tree | 6e21de5833c82e7e77cd4b7430b4ede15d35fc22 /src/options.cpp | |
parent | 1d5d5d5ef65687785382346d483f88c75548d46b (diff) |
merged with miranda_ng main repo
Diffstat (limited to 'src/options.cpp')
-rwxr-xr-x | src/options.cpp | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/src/options.cpp b/src/options.cpp index 6d44cd4..5ba5157 100755 --- a/src/options.cpp +++ b/src/options.cpp @@ -278,7 +278,8 @@ static INT_PTR CALLBACK DlgProcGpgOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LP gpg_thread.~thread();
TerminateProcess(params.hProcess, 1);
params.hProcess = NULL;
- debuglog<<time_str()<<": GPG execution timed out, aborted\n";
+ if(bDebugLog) + debuglog<<std::string(time_str()+": GPG execution timed out, aborted"); mir_free(tmp);
break;
}
@@ -458,7 +459,7 @@ static INT_PTR CALLBACK DlgProcGpgOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LP case PSN_APPLY:
{
- extern bool bDebugLog, bJabberAPI, bFileTransfers;
+ extern bool bJabberAPI, bFileTransfers; bDebugLog = CheckStateStoreDB(hwndDlg, IDC_DEBUG_LOG, "bDebugLog");
if(bDebugLog)
debuglog.init();
@@ -843,7 +844,8 @@ static INT_PTR CALLBACK DlgProcLoadPublicKey(HWND hwndDlg,UINT msg,WPARAM wParam gpg_thread.~thread();
TerminateProcess(params.hProcess, 1);
params.hProcess = NULL;
- debuglog<<time_str()<<": GPG execution timed out, aborted\n";
+ if(bDebugLog) + debuglog<<std::string(time_str()+": GPG execution timed out, aborted"); }
if((out.find("-----BEGIN PGP PUBLIC KEY BLOCK-----") != string::npos) && (out.find("-----END PGP PUBLIC KEY BLOCK-----") != string::npos))
{
@@ -996,7 +998,8 @@ static INT_PTR CALLBACK DlgProcLoadPublicKey(HWND hwndDlg,UINT msg,WPARAM wParam gpg_thread.~thread();
TerminateProcess(params.hProcess, 1);
params.hProcess = NULL;
- debuglog<<time_str()<<": GPG execution timed out, aborted\n";
+ if(bDebugLog) + debuglog<<std::string(time_str()+": GPG execution timed out, aborted"); break;
}
if(result == pxNotFound)
@@ -1243,7 +1246,8 @@ static INT_PTR CALLBACK DlgProcLoadPublicKey(HWND hwndDlg,UINT msg,WPARAM wParam gpg_thread.~thread();
TerminateProcess(params.hProcess, 1);
params.hProcess = NULL;
- debuglog<<time_str()<<": GPG execution timed out, aborted\n";
+ if(bDebugLog) + debuglog<<std::string(time_str()+": GPG execution timed out, aborted"); break;
}
if(result == pxNotFound)
@@ -1330,7 +1334,8 @@ static INT_PTR CALLBACK DlgProcLoadPublicKey(HWND hwndDlg,UINT msg,WPARAM wParam if(key_buf.empty())
{
key_buf.clear();
- debuglog<<time_str()<<": info: Failed to read key file\n";
+ if(bDebugLog) + debuglog<<std::string(time_str()+": info: Failed to read key file"); break;
}
ws2 = key_buf.find(_T("-----END PGP PUBLIC KEY BLOCK-----"));
|