From 879305c459ebbf5204ccfc1cf8b257f5a725a729 Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Sat, 11 Dec 2010 15:38:59 +0200 Subject: modified: utilities.cpp --- utilities.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utilities.cpp') 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) { -- cgit v1.2.3