diff options
author | George Hazan <george.hazan@gmail.com> | 2023-09-25 13:41:55 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2023-09-25 13:41:55 +0300 |
commit | c6f59d75142b7568dd89f5cff691b0b58030aafd (patch) | |
tree | 6fd83d9e6a71bbf7a750a1983922121265acadd7 /plugins/IEView/src | |
parent | 53669871fc860856c80c2d79cb6b21d52ea25440 (diff) |
SmileyAdd: fix for the obsolete quirks in SmaileyAdd API
Diffstat (limited to 'plugins/IEView/src')
-rw-r--r-- | plugins/IEView/src/TextToken.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/IEView/src/TextToken.cpp b/plugins/IEView/src/TextToken.cpp index a1bb18be63..c1aef39cd1 100644 --- a/plugins/IEView/src/TextToken.cpp +++ b/plugins/IEView/src/TextToken.cpp @@ -289,11 +289,10 @@ TextToken *TextToken::tokenizeSmileys(MCONTACT hContact, const wchar_t *text, bo if (!Options::bHasSmileyAdd)
return new TextToken(TEXT, text, l);
- SMADD_BATCHPARSE2 sp;
- sp.cbSize = sizeof(sp);
+ SMADD_BATCHPARSE sp;
sp.Protocolname = Proto_GetBaseAccountName(hContact);
sp.flag = SAFL_PATH | SAFL_UNICODE | (isSent ? SAFL_OUTGOING : 0);
- sp.wstr = (wchar_t *)text;
+ sp.str.w = text;
sp.hContact = hContact;
SMADD_BATCHPARSERES *spRes = (SMADD_BATCHPARSERES *)CallService(MS_SMILEYADD_BATCHPARSE, 0, (LPARAM)&sp);
|