From 81e9f9c08e7a9ef66b88506899b2b7b1886dc00e Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Fri, 12 Dec 2014 20:16:26 +0000 Subject: XSoundNotify: crash fix git-svn-id: http://svn.miranda-ng.org/main/trunk@11355 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/XSoundNotify/src/xsn_main.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'plugins/XSoundNotify/src/xsn_main.cpp') 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; -- cgit v1.2.3