From 66ca1334996fac1e76b1830b00a7a8d42ddb8e42 Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Thu, 28 Oct 2010 22:37:49 +0300 Subject: still have problems with metacontacts --- options.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'options.cpp') 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); -- cgit v1.2.3