summaryrefslogtreecommitdiff
path: root/plugins/NewStory/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2020-04-22 13:17:43 +0300
committerGeorge Hazan <ghazan@miranda.im>2020-04-22 13:17:43 +0300
commitf34bf81d0bc84e17b38587c44bc38e9efba5cf64 (patch)
treee92b414934fd4382d144ec72704108a6721d59f4 /plugins/NewStory/src
parent55e441722a63458e16d607b21ce2f429fa012ffa (diff)
fixes #2349 (NewStory: Chinese in system history)
Diffstat (limited to 'plugins/NewStory/src')
-rw-r--r--plugins/NewStory/src/history_array.cpp4
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));