diff options
author | George Hazan <george.hazan@gmail.com> | 2014-03-14 12:43:48 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-03-14 12:43:48 +0000 |
commit | dab7cf669ac8c1cd179889f4b307d1d5497710a7 (patch) | |
tree | d0740f6f78f3c1f678870bc5f2b8b17e13a80be5 /plugins/Db3x_mmap/src | |
parent | 3d0e6a54ede386034500cb4742a8ea2f4ac7a35f (diff) |
dbchecker not to clean events count in subs
git-svn-id: http://svn.miranda-ng.org/main/trunk@8600 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Db3x_mmap/src')
-rw-r--r-- | plugins/Db3x_mmap/src/dbtool/eventchain.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/Db3x_mmap/src/dbtool/eventchain.cpp b/plugins/Db3x_mmap/src/dbtool/eventchain.cpp index fd988fe2cc..3e747a65b4 100644 --- a/plugins/Db3x_mmap/src/dbtool/eventchain.cpp +++ b/plugins/Db3x_mmap/src/dbtool/eventchain.cpp @@ -82,9 +82,10 @@ void CDb3Mmap::WriteOfsNextToPrevious(DWORD ofsPrev, DBContact *dbc, DWORD ofsNe void CDb3Mmap::FinishUp(DWORD ofsLast, DBContact *dbc)
{
WriteOfsNextToPrevious(ofsLast, dbc, 0);
- if (eventCount != dbc->eventCount)
+ 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;
+ dbc->eventCount = eventCount;
+ }
dbc->ofsLastEvent = ofsLast;
if (cb->bMarkRead) {
dbc->ofsFirstUnread = 0;
|