From f34bf81d0bc84e17b38587c44bc38e9efba5cf64 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 22 Apr 2020 13:17:43 +0300 Subject: fixes #2349 (NewStory: Chinese in system history) --- plugins/NewStory/src/history_array.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins') 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)); -- cgit v1.2.3