diff options
author | George Hazan <george.hazan@gmail.com> | 2014-03-09 17:31:25 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-03-09 17:31:25 +0000 |
commit | 9e5c37585e70570767fa9c20750b22483d9882cf (patch) | |
tree | 4c4bbf60793e422836e8ca1c95e4bf26088923b3 /plugins | |
parent | ad2ac1d934c142ba327f476167b552bd30b30bf9 (diff) |
filling contactID for destination events in dbchecker
git-svn-id: http://svn.miranda-ng.org/main/trunk@8512 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/Db3x_mmap/src/dbtool/eventchain.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/Db3x_mmap/src/dbtool/eventchain.cpp b/plugins/Db3x_mmap/src/dbtool/eventchain.cpp index 6e54878cf6..3fa324aff9 100644 --- a/plugins/Db3x_mmap/src/dbtool/eventchain.cpp +++ b/plugins/Db3x_mmap/src/dbtool/eventchain.cpp @@ -186,10 +186,8 @@ int CDb3Mmap::WorkEventChain(DWORD ofsContact, DBContact *dbc, int firstTime) dbeOld.flags &= ~DBEF_FIRST;
}
- if (dbeOld.contactID == 0) {
- cb->pfnAddLogMessage(STATUS_WARNING, TranslateT("Zero event's contact ID: correcting"));
+ if (dbeOld.contactID == 0)
dbeOld.contactID = dbc->dwContactID;
- }
if (dbeOld.flags & ~DBEF_ALL) {
cb->pfnAddLogMessage(STATUS_WARNING, TranslateT("Extra flags found in event: removing"));
@@ -237,6 +235,7 @@ int CDb3Mmap::WorkEventChain(DWORD ofsContact, DBContact *dbc, int firstTime) cb->pfnAddLogMessage(STATUS_WARNING, TranslateT("Event not backlinked correctly: fixing"));
dbeNew->flags = dbeOld.flags;
+ dbeNew->contactID = dbc->dwContactID;
dbeNew->ofsPrev = ofsDestPrevEvent;
dbeNew->ofsNext = 0;
|