summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-09-25 13:41:55 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-09-25 13:41:55 +0300
commitc6f59d75142b7568dd89f5cff691b0b58030aafd (patch)
tree6fd83d9e6a71bbf7a750a1983922121265acadd7 /libs
parent53669871fc860856c80c2d79cb6b21d52ea25440 (diff)
SmileyAdd: fix for the obsolete quirks in SmaileyAdd API
Diffstat (limited to 'libs')
-rw-r--r--libs/mTextControl/src/services.cpp3
1 files changed, 1 insertions, 2 deletions
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;