diff options
author | George Hazan <george.hazan@gmail.com> | 2015-10-29 14:40:47 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-10-29 14:40:47 +0000 |
commit | 70a102f8b647845c056b66a1d84acb885d3383e7 (patch) | |
tree | 1ac6c6c7abbd5c276138d7be4d308ab98c3f5a5c /plugins/DbEditorPP | |
parent | 116c762e508fef30be544a9e07a2f89b33b481f6 (diff) |
bug in dbeditor: all unicode strings are displayed as "chinese" in Debug builds
git-svn-id: http://svn.miranda-ng.org/main/trunk@15646 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/DbEditorPP')
-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 8cc403ca01..a5777080a1 100644 --- a/plugins/DbEditorPP/src/settinglist.cpp +++ b/plugins/DbEditorPP/src/settinglist.cpp @@ -277,8 +277,10 @@ void updateListItem(int index, const char *setting, DBVARIANT *dbv, int resident ListView_SetItem(hwnd2List, &lvi);
length = (int)mir_strlen(dbv->pszVal) + 1;
- ListView_SetItemText(hwnd2List, index, 1, ptrT(mir_utf8decodeT(dbv->pszVal)));
-
+ {
+ ptrT tszText(mir_utf8decodeT(dbv->pszVal));
+ ListView_SetItemText(hwnd2List, index, 1, tszText);
+ }
mir_sntprintf(data, _T("0x%04X (%u)"), length, length);
ListView_SetItemText(hwnd2List, index, 3, data);
break;
|