summaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss123next@list.ru>2011-02-05 01:01:39 +0300
committerGluzskiy Alexandr <sss123next@list.ru>2011-02-05 01:01:39 +0300
commit816241e9a436ba0992d6306a0b739862d6e2fa47 (patch)
treed79baeddbe53db9ebbba91f2df8bc901492433f1 /main.cpp
parent9704417a4866a6b1758123bef6e90b14fb154bbe (diff)
keylist fix
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp4
1 files changed, 4 insertions, 0 deletions
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);