diff options
author | George Hazan <ghazan@miranda.im> | 2018-02-04 16:42:23 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-02-04 16:42:23 +0300 |
commit | 32cd89f64ef0449eac0ceea2ba9bc1aa36c5759b (patch) | |
tree | 5cb92407bb71893399210adb0d8dadcc53ab6dd6 /plugins/Scriver/src/msgs.cpp | |
parent | 60a76a56531ceb2bb6d03add1de32ceeef832be9 (diff) |
the error code of db_event_get() should be checked
Diffstat (limited to 'plugins/Scriver/src/msgs.cpp')
-rw-r--r-- | plugins/Scriver/src/msgs.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/Scriver/src/msgs.cpp b/plugins/Scriver/src/msgs.cpp index d7c0f1ac32..e713c569cc 100644 --- a/plugins/Scriver/src/msgs.cpp +++ b/plugins/Scriver/src/msgs.cpp @@ -252,7 +252,8 @@ static void RestoreUnreadMessageAlerts(void) for (MEVENT hDbEvent = db_event_firstUnread(hContact); hDbEvent; hDbEvent = db_event_next(hContact, hDbEvent)) {
DBEVENTINFO dbei = {};
dbei.cbBlob = 0;
- db_event_get(hDbEvent, &dbei);
+ if (db_event_get(hDbEvent, &dbei))
+ continue;
if ((dbei.flags & (DBEF_SENT | DBEF_READ)) || !DbEventIsMessageOrCustom(&dbei))
continue;
|