diff options
author | George Hazan <george.hazan@gmail.com> | 2014-01-06 18:45:37 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-01-06 18:45:37 +0000 |
commit | b8b02e227c26b01c478e4cd2335849f0194e7492 (patch) | |
tree | 99ac8af3192791b6166460f5586cf734a85610b3 /plugins | |
parent | 9c011b382187a454f728f0efc5321a53ed957685 (diff) |
cleaning rest of decoded event not to make aggressive check suspicious
git-svn-id: http://svn.miranda-ng.org/main/trunk@7526 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/Db3x_mmap/src/dbcrypt.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/Db3x_mmap/src/dbcrypt.cpp b/plugins/Db3x_mmap/src/dbcrypt.cpp index 843a48b31b..922e7c006b 100644 --- a/plugins/Db3x_mmap/src/dbcrypt.cpp +++ b/plugins/Db3x_mmap/src/dbcrypt.cpp @@ -426,6 +426,9 @@ void CDb3Mmap::ToggleEventsEncryption(HANDLE hContact) ofsDest = offset; // reuse the old space
evt.flags &= ~DBEF_ENCRYPTED;
+
+ if (len < evt.cbBlob)
+ DBFill(ofsDest + offsetof(DBEvent, blob) + (DWORD)len, evt.cbBlob - (DWORD)len);
}
evt.cbBlob = (DWORD)len;
|