diff options
Diffstat (limited to 'plugins/New_GPG')
-rwxr-xr-x | plugins/New_GPG/src/utilities.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/plugins/New_GPG/src/utilities.cpp b/plugins/New_GPG/src/utilities.cpp index 2985a09b1f..ac9cbdbba8 100755 --- a/plugins/New_GPG/src/utilities.cpp +++ b/plugins/New_GPG/src/utilities.cpp @@ -271,10 +271,11 @@ int onProtoAck(WPARAM, LPARAM l) case ACKRESULT_DENIED: case ACKRESULT_FAILED: break; case ACKRESULT_SUCCESS: - { - if(!ack->hProcess) - break; + if (ack->hProcess) { PROTOFILETRANSFERSTATUS *f = (PROTOFILETRANSFERSTATUS*)ack->hProcess; + if (f == NULL) + break; + if ((f->flags & PFTS_SENDING) != PFTS_SENDING) { wchar_t *filename = NULL; if (f->flags & PFTS_UNICODE) { @@ -289,8 +290,8 @@ int onProtoAck(WPARAM, LPARAM l) if (!filename) return 0; } - if (wcsstr(filename, L".gpg")) //decrypt it - { //process encrypted file + if (wcsstr(filename, L".gpg")) { //decrypt it + //process encrypted file if (!bFileTransfers && !bSameAction) { void ShowEncryptedFileMsgBox(); ShowEncryptedFileMsgBox(); |