summaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
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);