diff options
author | Gluzskiy Alexandr <sss123next@list.ru> | 2011-02-05 01:01:39 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss123next@list.ru> | 2011-02-05 01:01:39 +0300 |
commit | 816241e9a436ba0992d6306a0b739862d6e2fa47 (patch) | |
tree | d79baeddbe53db9ebbba91f2df8bc901492433f1 /main.cpp | |
parent | 9704417a4866a6b1758123bef6e90b14fb154bbe (diff) |
keylist fix
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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); |