summaryrefslogtreecommitdiff
path: root/options.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'options.cpp')
-rw-r--r--options.cpp3
1 files changed, 2 insertions, 1 deletions
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];