diff options
Diffstat (limited to 'protocols/JabberG')
-rw-r--r-- | protocols/JabberG/src/jabber_userinfo.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/protocols/JabberG/src/jabber_userinfo.cpp b/protocols/JabberG/src/jabber_userinfo.cpp index 5fe597a2f8..63b4100370 100644 --- a/protocols/JabberG/src/jabber_userinfo.cpp +++ b/protocols/JabberG/src/jabber_userinfo.cpp @@ -791,8 +791,15 @@ static void AddListItem(HWND hwndList, const CMStringA &pszStr1, const wchar_t * ListView_SetItemText(hwndList, idx, 1, (wchar_t *)pszStr2); - _A2T tmp(pszStr3.c_str()); - ListView_SetItemText(hwndList, idx, 2, (wchar_t *)tmp.get()); + int i = 0; + CMStringW buf; + for (const char *p = pszStr3; *p; p++) { + buf.AppendChar(*p); + if (++i % 8 == 0) + buf.AppendChar(' '); + } + buf.MakeUpper(); + ListView_SetItemText(hwndList, idx, 2, buf.GetBuffer()); } INT_PTR CALLBACK JabberUserOmemoDlgProc(HWND hwndDlg, UINT msg, WPARAM, LPARAM lParam) |