From 816241e9a436ba0992d6306a0b739862d6e2fa47 Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Sat, 5 Feb 2011 01:01:39 +0300 Subject: keylist fix --- main.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'main.cpp') diff --git a/main.cpp b/main.cpp index 1287be5..f35ff70 100644 --- a/main.cpp +++ b/main.cpp @@ -1451,6 +1451,8 @@ static BOOL CALLBACK DlgProcLoadExistingKey(HWND hwndDlg,UINT msg,WPARAM wParam, ListView_SetItemText(hwndList, iRow, 4, tmp); mir_free(tmp); } + else + p2--; tmp = mir_wstrdup(toUTF16(out.substr(p,p2-p)).c_str()); ListView_SetItemText(hwndList, iRow, 3, tmp); mir_free(tmp); @@ -1469,6 +1471,8 @@ static BOOL CALLBACK DlgProcLoadExistingKey(HWND hwndDlg,UINT msg,WPARAM wParam, ListView_SetItemText(hwndList, iRow, 1, tmp); mir_free(tmp); } + else + p2--; p = out.find_first_not_of(" ", p); tmp = mir_wstrdup(toUTF16(out.substr(p,p2-p)).c_str()); ListView_SetItemText(hwndList, iRow, 2, tmp); -- cgit v1.2.3