diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2014-12-12 20:16:26 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2014-12-12 20:16:26 +0000 |
commit | 81e9f9c08e7a9ef66b88506899b2b7b1886dc00e (patch) | |
tree | 711b44b2b4782892eb3544302b7c15778b054af5 /plugins | |
parent | 02899659835bd6352f42a90a344b1de896f6a6a8 (diff) |
XSoundNotify: crash fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@11355 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/XSoundNotify/src/xsn_main.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/XSoundNotify/src/xsn_main.cpp b/plugins/XSoundNotify/src/xsn_main.cpp index 0fda900bbd..9b121632ca 100644 --- a/plugins/XSoundNotify/src/xsn_main.cpp +++ b/plugins/XSoundNotify/src/xsn_main.cpp @@ -141,6 +141,8 @@ static int ProcessChatEvent(WPARAM, LPARAM lParam) MCONTACT hContact = pci->FindRoom(gcd->pszModule, gcd->ptszID);
if (hContact != 0) {
ptrT nick(db_get_tsa(hContact, gcd->pszModule, "MyNick"));
+ if (nick == NULL || gce->ptszText == NULL)
+ return 0;
if (_tcsstr(gce->ptszText, nick)) {
isIgnoreSound = db_get_b(hContact, SETTINGSNAME, SETTINGSIGNOREKEY, 0);
DBVARIANT dbv;
|