From c6f59d75142b7568dd89f5cff691b0b58030aafd Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 25 Sep 2023 13:41:55 +0300 Subject: SmileyAdd: fix for the obsolete quirks in SmaileyAdd API --- src/core/stdmsg/src/msglog.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/core/stdmsg') diff --git a/src/core/stdmsg/src/msglog.cpp b/src/core/stdmsg/src/msglog.cpp index c0a83c5259..55cac4d02f 100644 --- a/src/core/stdmsg/src/msglog.cpp +++ b/src/core/stdmsg/src/msglog.cpp @@ -461,8 +461,7 @@ public: } if (g_plugin.bSmileyInstalled) { - SMADD_RICHEDIT3 smre; - smre.cbSize = sizeof(SMADD_RICHEDIT3); + SMADD_RICHEDIT smre; smre.hwndRichEditControl = m_rtf.GetHwnd(); MCONTACT hContact = db_mc_getSrmmSub(m_pDlg.m_hContact); @@ -546,8 +545,7 @@ public: if (newsel.cpMin < 0) newsel.cpMin = 0; - SMADD_RICHEDIT3 sm = {}; - sm.cbSize = sizeof(sm); + SMADD_RICHEDIT sm = {}; sm.hwndRichEditControl = m_rtf.GetHwnd(); sm.Protocolname = si->pszModule; sm.rangeToReplace = bRedraw ? nullptr : &newsel; -- cgit v1.2.3