summaryrefslogtreecommitdiff
path: root/options.cpp
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss123next@list.ru>2010-10-28 22:37:49 +0300
committerGluzskiy Alexandr <sss123next@list.ru>2010-10-28 22:37:49 +0300
commit66ca1334996fac1e76b1830b00a7a8d42ddb8e42 (patch)
treec9281a516aca66294dfb10d3b0169c746b221a18 /options.cpp
parent81a35fab982d1d0a98a4ddf61e8b57f03fc9e41e (diff)
still have problems with metacontacts
Diffstat (limited to 'options.cpp')
-rw-r--r--options.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/options.cpp b/options.cpp
index 6acc3e7..a560168 100644
--- a/options.cpp
+++ b/options.cpp
@@ -932,6 +932,8 @@ static BOOL CALLBACK DlgProcLoadPublicKey(HWND hwndDlg,UINT msg,WPARAM wParam,LP
s2 = output.find("<", s);
else if(s2 > output.find("<", s))
s2 = output.find("<", s);
+ if(s2 != string::npos)
+ {
tmp2 = new char [output.substr(s,s2-s-1).length()+1];
strcpy(tmp2, output.substr(s,s2-s-1).c_str());
mir_utf8decode(tmp2, 0);
@@ -1057,6 +1059,7 @@ static BOOL CALLBACK DlgProcLoadPublicKey(HWND hwndDlg,UINT msg,WPARAM wParam,LP
ListView_SetItemText(hwndList_p, item_num, 3, tmp);
mir_free(tmp);
}
+ }
if(hContact && hwndList_p)
{
ListView_SetColumnWidth(hwndList_p, 0, LVSCW_AUTOSIZE);