summaryrefslogtreecommitdiff
path: root/Plugins
diff options
context:
space:
mode:
Diffstat (limited to 'Plugins')
-rw-r--r--Plugins/emoticons/Docs/emoticons_changelog.txt3
-rw-r--r--Plugins/emoticons/Docs/emoticons_version.txt2
-rw-r--r--Plugins/emoticons/emoticons.cpp16
3 files changed, 15 insertions, 6 deletions
diff --git a/Plugins/emoticons/Docs/emoticons_changelog.txt b/Plugins/emoticons/Docs/emoticons_changelog.txt
index f764653..cd01101 100644
--- a/Plugins/emoticons/Docs/emoticons_changelog.txt
+++ b/Plugins/emoticons/Docs/emoticons_changelog.txt
@@ -2,6 +2,9 @@ Emoticons
Changelog:
+. 0.0.2.9
+ * Fix for crash
+
. 0.0.2.8
* Fix for AIM smileys
+ Added support for IEView and Clist Modern
diff --git a/Plugins/emoticons/Docs/emoticons_version.txt b/Plugins/emoticons/Docs/emoticons_version.txt
index 5406d64..fb4b341 100644
--- a/Plugins/emoticons/Docs/emoticons_version.txt
+++ b/Plugins/emoticons/Docs/emoticons_version.txt
@@ -1 +1 @@
-Emoticons 0.0.2.8 \ No newline at end of file
+Emoticons 0.0.2.9 \ No newline at end of file
diff --git a/Plugins/emoticons/emoticons.cpp b/Plugins/emoticons/emoticons.cpp
index 09d2ba0..633454e 100644
--- a/Plugins/emoticons/emoticons.cpp
+++ b/Plugins/emoticons/emoticons.cpp
@@ -30,7 +30,7 @@ PLUGININFOEX pluginInfo={
#else
"Emoticons",
#endif
- PLUGIN_MAKE_VERSION(0,0,2,7),
+ PLUGIN_MAKE_VERSION(0,0,2,9),
"Emoticons",
"Ricardo Pescuma Domenecci",
"",
@@ -2198,6 +2198,9 @@ EmoticonPack *GetPack(char *name)
Module *GetModuleByName(const char *name)
{
+ if (name == NULL)
+ return NULL;
+
Module *ret = NULL;
for(int i = 0; i < modules.getCount(); i++)
{
@@ -3591,7 +3594,7 @@ int ParseService(SMADD_PARSE *sp, BOOL unicode)
Module *module = GetModule(sp->Protocolname);
- if (start >= len || start < 0)
+ if (start >= len || start < 0 || module == NULL)
return -1;
EmoticonFound found;
@@ -3646,6 +3649,12 @@ int BatchParseService(WPARAM wParam, LPARAM lParam)
if (bp == NULL || bp->cbSize < sizeof(SMADD_BATCHPARSE2) || bp->str == NULL)
return NULL;
+ Contact *contact = GetContact(bp->hContact);
+ Module *module = GetContactModule(bp->hContact, bp->Protocolname);
+
+ if (module == NULL)
+ return NULL;
+
Buffer<SMADD_BATCHPARSERES> ret;
BOOL path = (bp->flag & SAFL_PATH);
@@ -3658,9 +3667,6 @@ int BatchParseService(WPARAM wParam, LPARAM lParam)
text = mir_a2t(bp->astr);
int len = lstrlen(text);
- Contact *contact = GetContact(bp->hContact);
- Module *module = GetContactModule(bp->hContact, bp->Protocolname);
-
EmoticonFound found;
int count = 0;
for(int i = 0; i < len; i++)