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 --- libs/mTextControl/src/services.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libs/mTextControl') diff --git a/libs/mTextControl/src/services.cpp b/libs/mTextControl/src/services.cpp index 310c2863dd..4eebeeab22 100644 --- a/libs/mTextControl/src/services.cpp +++ b/libs/mTextControl/src/services.cpp @@ -52,8 +52,7 @@ void MText_InitFormatting1(TextObject *text) // smilies HWND hwnd = CreateProxyWindow(text->ftd->getTextService()); - SMADD_RICHEDIT3 sm = {}; - sm.cbSize = sizeof(sm); + SMADD_RICHEDIT sm = {}; sm.hwndRichEditControl = hwnd; sm.rangeToReplace = nullptr; sm.Protocolname = text->szProto; -- cgit v1.2.3