summaryrefslogtreecommitdiff
path: root/plugins/New_GPG
diff options
context:
space:
mode:
authorAlexander Gluzsky <sss123next@list.ru>2013-01-04 03:00:10 +0000
committerAlexander Gluzsky <sss123next@list.ru>2013-01-04 03:00:10 +0000
commit96210745ea2aa5d22ddd273fc4adb44a4c58ff6a (patch)
treeb3b3a92933d4aa529d2313ccdae56e7760a9076b /plugins/New_GPG
parent53e568efe6f2a9e121ac6cf305e5fa9a84137c1a (diff)
do not delete file on decryption error
git-svn-id: http://svn.miranda-ng.org/main/trunk@2949 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/New_GPG')
-rwxr-xr-xplugins/New_GPG/src/utilities.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/plugins/New_GPG/src/utilities.cpp b/plugins/New_GPG/src/utilities.cpp
index 585f633e8b..ec737b7c10 100755
--- a/plugins/New_GPG/src/utilities.cpp
+++ b/plugins/New_GPG/src/utilities.cpp
@@ -424,7 +424,7 @@ int onProtoAck(WPARAM w, LPARAM l)
}
out.clear();
gpg_execution_params params;
- pxResult result;
+ //pxResult result;
params.cmd = &cmd2;
params.useless = "";
params.out = &out;
@@ -437,16 +437,17 @@ int onProtoAck(WPARAM w, LPARAM l)
TerminateProcess(params.hProcess, 1);
params.hProcess = NULL;
debuglog<<time_str()<<": GPG execution timed out, aborted\n";
- DeleteFile(filename);
+ //DeleteFile(filename);
return 0;
}
if(result == pxNotFound)
{
- DeleteFile(filename);
+ //DeleteFile(filename);
return 0;
}
}
- DeleteFile(filename);
+ if(result == pxSuccess)
+ DeleteFile(filename);
mir_free(filename);
}
}