diff options
Diffstat (limited to 'utilities.cpp')
-rw-r--r-- | utilities.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utilities.cpp b/utilities.cpp index b462a23..b0f72c0 100644 --- a/utilities.cpp +++ b/utilities.cpp @@ -316,7 +316,7 @@ int onProtoAck(WPARAM w, LPARAM l) pxResult result; wstring cmd = _T("-o "); wstring file = filename; - wstring::size_type p1 = file.find(_T(".gpg")); + wstring::size_type p1 = file.rfind(_T(".gpg")); file.erase(p1, _tcslen(_T(".gpg"))); if(_waccess(file.c_str(), 0) != -1) { |