summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-06-18 18:39:53 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-06-18 18:39:53 +0000
commitaba0d62ec418df2291eeeac72435ce3390594e07 (patch)
tree448d81062bcfba7c61e00b224e967c28df1fd008 /plugins
parentae30cd958593fae5c4d385045f5ba669b9dd4b50 (diff)
fix for unicode strings
git-svn-id: http://svn.miranda-ng.org/main/trunk@14248 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins')
-rw-r--r--plugins/DbEditorPP/src/settinglist.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/DbEditorPP/src/settinglist.cpp b/plugins/DbEditorPP/src/settinglist.cpp
index 015971a737..49445328c1 100644
--- a/plugins/DbEditorPP/src/settinglist.cpp
+++ b/plugins/DbEditorPP/src/settinglist.cpp
@@ -263,7 +263,10 @@ void updateListItem(int index, const char *setting, DBVARIANT *dbv, int resident
lvi.iImage = IMAGE_UNICODE;
ListView_SetItem(hwnd2List, &lvi);
length = (int)mir_strlen(dbv->pszVal) + 1;
- ListView_SetItemText(hwnd2List, index, 1, ptrT(mir_utf8decodeT(dbv->pszVal)));
+ {
+ ptrT tmp(mir_utf8decodeT(dbv->pszVal));
+ ListView_SetItemText(hwnd2List, index, 1, tmp);
+ }
mir_sntprintf(data, _T("0x%04X (%u)"), length, length);
ListView_SetItemText(hwnd2List, index, 3, data);
break;