diff options
author | George Hazan <ghazan@miranda.im> | 2019-12-16 18:14:19 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-12-16 18:14:19 +0300 |
commit | f9334351bbe94ec92d067fe6c20e958a71e3a5db (patch) | |
tree | 79acb067c067170da0f98980832d0f9ae8e46f48 /plugins/DbEditorPP/src | |
parent | a9ed9c39c5a701e445123edaae79d4f1d08d9f21 (diff) |
shitty Windows helpers...
Diffstat (limited to 'plugins/DbEditorPP/src')
-rw-r--r-- | plugins/DbEditorPP/src/settinglist.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/DbEditorPP/src/settinglist.cpp b/plugins/DbEditorPP/src/settinglist.cpp index 9c609515c1..54323be704 100644 --- a/plugins/DbEditorPP/src/settinglist.cpp +++ b/plugins/DbEditorPP/src/settinglist.cpp @@ -266,8 +266,10 @@ void updateListItem(int index, const char *setting, DBVARIANT *dbv, int resident case DBVT_UTF8:
lvi.iImage = IMAGE_UNICODE;
ListView_SetItem(hwnd2List, &lvi);
- ListView_SetItemText(hwnd2List, index, 1, ptrW(mir_utf8decodeW(dbv->pszVal)));
-
+ {
+ ptrW wszText(mir_utf8decodeW(dbv->pszVal));
+ ListView_SetItemText(hwnd2List, index, 1, wszText);
+ }
length = (int)mir_strlen(dbv->pszVal) + 1;
mir_snwprintf(data, L"0x%04X (%u)", length, length);
ListView_SetItemText(hwnd2List, index, 3, data);
|