diff options
author | George Hazan <george.hazan@gmail.com> | 2015-10-28 18:20:04 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-10-28 18:20:04 +0000 |
commit | a8b98cd3af1d5f40db152069184be5b7ccfae0e2 (patch) | |
tree | 6b9aae21da327a50542560e615c487d38b754434 /plugins | |
parent | 162c8ddd463f17d84b7224219119f8acef6ce23d (diff) |
crash fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@15638 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/Scriver/src/msgs.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/Scriver/src/msgs.cpp b/plugins/Scriver/src/msgs.cpp index fb24a45acb..5d3e916df0 100644 --- a/plugins/Scriver/src/msgs.cpp +++ b/plugins/Scriver/src/msgs.cpp @@ -238,8 +238,9 @@ static int MessageSettingChanged(WPARAM hContact, LPARAM lParam) {
DBCONTACTWRITESETTING *cws = (DBCONTACTWRITESETTING *)lParam;
char *szProto = GetContactProto(hContact);
- if (!strcmp(cws->szModule, "CList") || !strcmp(cws->szModule, szProto))
- WindowList_Broadcast(g_dat.hMessageWindowList, DM_CLISTSETTINGSCHANGED, hContact, lParam);
+ if (szProto)
+ if (!strcmp(cws->szModule, "CList") || !strcmp(cws->szModule, szProto))
+ WindowList_Broadcast(g_dat.hMessageWindowList, DM_CLISTSETTINGSCHANGED, hContact, lParam);
return 0;
}
|