diff options
author | George Hazan <ghazan@miranda.im> | 2020-08-18 18:09:03 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-08-18 18:09:03 +0300 |
commit | 0dbba78f4fb4a05945be5aab0848c01881b8ac12 (patch) | |
tree | 22202337f33799f5aef325ac24bae201f724e939 /plugins/Clist_modern/src | |
parent | 5793d48b5574e234397f6cb7a96997342ba44ac0 (diff) |
SmileyAdd:
- fixes #2545 (SmileyAdd: missing assigned per-contact smileys categories);
- unused service MS_SMILEYADD_SHOWSELECTION removed;
- name conflict resolution;
- version bump;
Diffstat (limited to 'plugins/Clist_modern/src')
-rw-r--r-- | plugins/Clist_modern/src/modern_cachefuncs.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/Clist_modern/src/modern_cachefuncs.cpp b/plugins/Clist_modern/src/modern_cachefuncs.cpp index 3c0f0fb9e3..bed00e3ffa 100644 --- a/plugins/Clist_modern/src/modern_cachefuncs.cpp +++ b/plugins/Clist_modern/src/modern_cachefuncs.cpp @@ -170,7 +170,7 @@ void CSmileyString::DestroySmileyList() ///////////////////////////////////////////////////////////////////////////////////////// // Parsing of text for smiley // -void CSmileyString::ReplaceSmileys(ClcData *dat, ClcCacheEntry *pdnce, wchar_t * szText, BOOL replace_smileys) +void CSmileyString::ReplaceSmileys(ClcData *dat, ClcCacheEntry *pdnce, wchar_t *szText, BOOL replace_smileys) { int last_pos = 0; iMaxSmileyHeight = 0; @@ -183,8 +183,9 @@ void CSmileyString::ReplaceSmileys(ClcData *dat, ClcCacheEntry *pdnce, wchar_t * int text_size = (int)mir_wstrlen(szText); // Call service for the first time to see if needs to be used... - SMADD_BATCHPARSE2 sp = { 0 }; + SMADD_BATCHPARSE2 sp = {}; sp.cbSize = sizeof(sp); + sp.hContact = pdnce->hContact; if (dat->text_use_protocol_smileys) { sp.Protocolname = pdnce->szProto; |