From 495060a525513654e6d5ab39f24571c053b3b67b Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Sun, 5 Sep 2010 22:09:13 +0300 Subject: modified: gpg_wrapper.cpp modified: main.cpp modified: options.cpp modified: utilities.cpp --- options.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'options.cpp') diff --git a/options.cpp b/options.cpp index 0c19b60..00b4b7e 100644 --- a/options.cpp +++ b/options.cpp @@ -683,6 +683,7 @@ static BOOL CALLBACK DlgProcLoadPublicKey(HWND hwndDlg,UINT msg,WPARAM wParam,LP mir_free(ptmp); _tcscat(tmp2, _T("\\")); _tcscat(tmp2, _T("temporary_exported.asc")); + DeleteFile(tmp2); wfstream f(tmp2, std::ios::out); ptmp = UniGetContactSettingUtf(hcnt, szGPGModuleName, "GPGPubKey", _T("")); wstring str = ptmp; @@ -780,7 +781,7 @@ static BOOL CALLBACK DlgProcLoadPublicKey(HWND hwndDlg,UINT msg,WPARAM wParam,LP ListView_SetItemText(hwndList_p, item_num, 1, tmp); mir_free(tmp); s2+=2; - s = output.find("\"", s2)-1; + s = output.find("“", s2)+1; if(s != s2-1) { tmp2 = new char [output.substr(s2,s-s2).length()+1]; -- cgit v1.2.3