diff options
author | George Hazan <ghazan@miranda.im> | 2020-04-22 13:17:43 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-04-22 13:17:43 +0300 |
commit | f34bf81d0bc84e17b38587c44bc38e9efba5cf64 (patch) | |
tree | e92b414934fd4382d144ec72704108a6721d59f4 /plugins/NewStory/src/history_array.cpp | |
parent | 55e441722a63458e16d607b21ce2f429fa012ffa (diff) |
fixes #2349 (NewStory: Chinese in system history)
Diffstat (limited to 'plugins/NewStory/src/history_array.cpp')
-rw-r--r-- | plugins/NewStory/src/history_array.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/NewStory/src/history_array.cpp b/plugins/NewStory/src/history_array.cpp index 0a2304ea56..4412584479 100644 --- a/plugins/NewStory/src/history_array.cpp +++ b/plugins/NewStory/src/history_array.cpp @@ -38,7 +38,7 @@ bool HistoryArray::ItemData::load(EventLoadMode mode) wtext = new wchar_t[512]; wtext_del = true; if ((dbe.cbBlob > 8) && *(dbe.pBlob + 8)) { - mir_snwprintf(wtext, 512, L"%s requested authorization", dbe.pBlob + 8); + mir_snwprintf(wtext, 512, L"%s requested authorization", Utf2T((char*)dbe.pBlob + 8).get()); } else { mir_snwprintf(wtext, 512, L"%d requested authorization", *(DWORD *)(dbe.pBlob)); @@ -49,7 +49,7 @@ bool HistoryArray::ItemData::load(EventLoadMode mode) wtext = new wchar_t[512]; wtext_del = true; if ((dbe.cbBlob > 8) && *(dbe.pBlob + 8)) { - mir_snwprintf(wtext, 512, L"%s added you to the contact list", dbe.pBlob + 8); + mir_snwprintf(wtext, 512, L"%s added you to the contact list", Utf2T((char *)dbe.pBlob + 8).get()); } else { mir_snwprintf(wtext, 512, L"%d added you to the contact list", *(DWORD *)(dbe.pBlob)); |