diff options
Diffstat (limited to 'utilities.cpp')
-rw-r--r-- | utilities.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/utilities.cpp b/utilities.cpp index 3eaf9a7..9cba16a 100644 --- a/utilities.cpp +++ b/utilities.cpp @@ -589,7 +589,7 @@ static JABBER_HANDLER_FUNC PrescenseHandler(IJabberInterface *ji, HXML node, voi { //gpg string out; DWORD code; - wstring cmd = _T(" -d -a \""); + wstring cmd = _T(" --verify -a \""); cmd += path_out; cmd += _T("\""); gpg_execution_params params; @@ -605,6 +605,8 @@ static JABBER_HANDLER_FUNC PrescenseHandler(IJabberInterface *ji, HXML node, voi TerminateThread(gpg_thread, 0); MessageBox(0, _T("GPG execution timed out, aborted"), _T(""), MB_OK); } + DeleteFile(path_out.c_str()); + ReleaseMutex(sign_file_mutex); if(result == pxNotFound) { MessageBox(0, _T("Set path to gpg.exe first!"), _T("Warning"), MB_OK); @@ -616,8 +618,6 @@ static JABBER_HANDLER_FUNC PrescenseHandler(IJabberInterface *ji, HXML node, voi string::size_type p2 = out.find("\n", p); } } - DeleteFile(path_out.c_str()); - ReleaseMutex(sign_file_mutex); return FALSE; } } |