summaryrefslogtreecommitdiff
path: root/plugins/Db3x_mmap
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-03-14 13:17:12 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-03-14 13:17:12 +0000
commit5d9c55dfe1afbccc0ea07ac80c22fd628639af17 (patch)
tree4423507010369094213acd528e10601f9e2c5821 /plugins/Db3x_mmap
parent37bccc50a3e0fe7fd64915e280cd491edb0bc4c5 (diff)
oops...
git-svn-id: http://svn.miranda-ng.org/main/trunk@8602 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Db3x_mmap')
-rw-r--r--plugins/Db3x_mmap/src/dbtool/eventchain.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/Db3x_mmap/src/dbtool/eventchain.cpp b/plugins/Db3x_mmap/src/dbtool/eventchain.cpp
index 3e747a65b4..9d3b227526 100644
--- a/plugins/Db3x_mmap/src/dbtool/eventchain.cpp
+++ b/plugins/Db3x_mmap/src/dbtool/eventchain.cpp
@@ -82,7 +82,7 @@ void CDb3Mmap::WriteOfsNextToPrevious(DWORD ofsPrev, DBContact *dbc, DWORD ofsNe
void CDb3Mmap::FinishUp(DWORD ofsLast, DBContact *dbc)
{
WriteOfsNextToPrevious(ofsLast, dbc, 0);
- if (eventCount != dbc->eventCount && dbc->ofsFirstEvent != 0 || dbc->ofsLastEvent != 0 || dbc->ofsFirstUnread != 0) {
+ if (eventCount != dbc->eventCount && !(dbc->ofsFirstEvent == 0 && dbc->ofsLastEvent == 0 && dbc->ofsFirstUnread == 0)) {
cb->pfnAddLogMessage(STATUS_WARNING, TranslateT("Event count marked wrongly: correcting"));
dbc->eventCount = eventCount;
}