From 0f9e1002ec21154bc476fbfeab0d21f796515823 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 25 Dec 2023 14:58:56 +0300 Subject: DbEvent_GetTextW: useless second parameter removed --- plugins/TabSRMM/src/msgdialog.cpp | 2 +- plugins/TabSRMM/src/msglog.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/TabSRMM/src') diff --git a/plugins/TabSRMM/src/msgdialog.cpp b/plugins/TabSRMM/src/msgdialog.cpp index 7db8739e27..90170af3b1 100644 --- a/plugins/TabSRMM/src/msgdialog.cpp +++ b/plugins/TabSRMM/src/msgdialog.cpp @@ -934,7 +934,7 @@ void CMsgDialog::onClick_Quote(CCtrlButton*) if (szQuoted.IsEmpty()) { DB::EventInfo dbei(hDBEvent); if (dbei) - szQuoted = Srmm_Quote(ptrW(DbEvent_GetTextW(&dbei, CP_ACP)), iOutputWidth); + szQuoted = Srmm_Quote(ptrW(DbEvent_GetTextW(&dbei)), iOutputWidth); } } diff --git a/plugins/TabSRMM/src/msglog.cpp b/plugins/TabSRMM/src/msglog.cpp index 2ae3bd5186..18759fbbdf 100644 --- a/plugins/TabSRMM/src/msglog.cpp +++ b/plugins/TabSRMM/src/msglog.cpp @@ -573,7 +573,7 @@ bool CLogWindow::CreateRtfEvent(RtfLogStreamData *streamData, DB::EventInfo &dbe if (!isSent && bIsStatusChangeEvent) dbei.wipeNotify(streamData->hDbEvent); - CMStringW msg(ptrW(DbEvent_GetTextW(&dbei, CP_UTF8))); + CMStringW msg(ptrW(DbEvent_GetTextW(&dbei))); if (msg.IsEmpty()) return nullptr; @@ -981,7 +981,7 @@ bool CLogWindow::CreateRtfEvent(RtfLogStreamData *streamData, DB::EventInfo &dbe if (blob.isOffline()) InsertFileLink(str, streamData->hDbEvent, blob); else - AppendUnicodeToBuffer(str, ptrW(DbEvent_GetTextW(&dbei, CP_ACP)), 0); + AppendUnicodeToBuffer(str, ptrW(DbEvent_GetTextW(&dbei)), 0); } break; @@ -991,7 +991,7 @@ bool CLogWindow::CreateRtfEvent(RtfLogStreamData *streamData, DB::EventInfo &dbe str.AppendChar(' '); } - ptrW tszText(DbEvent_GetTextW(&dbei, CP_ACP)); + ptrW tszText(DbEvent_GetTextW(&dbei)); AppendUnicodeToBuffer(str, tszText, 0); } break; -- cgit v1.2.3