diff options
author | George Hazan <ghazan@miranda.im> | 2022-06-16 18:54:58 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2022-06-16 18:54:58 +0300 |
commit | 734822b2e08cb153b6b067a8c1970bb0dfe58e95 (patch) | |
tree | eafe38416b63e9e3a7dea633669d5612e91ecaa7 /plugins/NewEventNotify/src/popup.cpp | |
parent | ace3026d65c497ce24036e9a11434d8fe33ff330 (diff) |
fixes #3103 (Miranda crashes randomly (null pointer dereference in NewEventNotify)
Diffstat (limited to 'plugins/NewEventNotify/src/popup.cpp')
-rw-r--r-- | plugins/NewEventNotify/src/popup.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/NewEventNotify/src/popup.cpp b/plugins/NewEventNotify/src/popup.cpp index 6f70f20e25..dca446fb4f 100644 --- a/plugins/NewEventNotify/src/popup.cpp +++ b/plugins/NewEventNotify/src/popup.cpp @@ -286,9 +286,9 @@ static wchar_t* GetEventPreview(DBEVENTINFO *dbei) break;
default:
- DBEVENTTYPEDESCR *pei = DbEvent_GetType(dbei->szModule, dbei->eventType);
// support for custom database event types
- if (pBlob) {
+ DBEVENTTYPEDESCR *pei = DbEvent_GetType(dbei->szModule, dbei->eventType);
+ if (pei && pBlob) {
comment1 = DbEvent_GetTextW(dbei, CP_ACP);
commentFix = pei->descr;
}
|