From aa9a8ff1c03ca9734721b98d264e22df560fc228 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 12 May 2025 20:04:16 +0300 Subject: =?UTF-8?q?fixes=20#5020=20(NewStory:=20=D1=80=D0=B5=D0=B4=D0=B0?= =?UTF-8?q?=D0=BA=D1=82=D0=B8=D1=80=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8=D0=B5=20?= =?UTF-8?q?=D1=81=D0=BE=D0=B1=D1=8B=D1=82=D0=B8=D0=B9=20=D0=B2=D1=81=D0=B5?= =?UTF-8?q?=D0=B3=D0=B4=D0=B0=20=D1=80=D0=B5=D0=B4=D0=B0=D0=BA=D1=82=D0=B8?= =?UTF-8?q?=D1=80=D1=83=D0=B5=D1=82=20=D0=BF=D0=BE=D1=81=D0=BB=D0=B5=D0=B4?= =?UTF-8?q?=D0=BD=D0=B5=D0=B5=20=D1=81=D0=BE=D0=B1=D1=8B=D1=82=D0=B8=D0=B5?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/NewStory/src/history_control.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins') diff --git a/plugins/NewStory/src/history_control.cpp b/plugins/NewStory/src/history_control.cpp index c30c7cdc1c..cfe23fdc22 100644 --- a/plugins/NewStory/src/history_control.cpp +++ b/plugins/NewStory/src/history_control.cpp @@ -499,11 +499,11 @@ void NewstoryListData::EndEditItem(bool bAccept) pItem->wtext[iTextLen] = 0; if (pItem->dbe.hContact && pItem->dbe.getEvent()) { - DBEVENTINFO dbei = pItem->dbe; + DB::EventInfo dbei(pItem->dbe.getEvent()); ptrA szUtf(mir_utf8encodeW(pItem->wtext)); dbei.cbBlob = (int)mir_strlen(szUtf) + 1; - dbei.pBlob = szUtf.get(); + dbei.pBlob = szUtf.detach(); db_event_edit(pItem->dbe.getEvent(), &dbei); } -- cgit v1.2.3