diff options
Diffstat (limited to 'plugins/Db3x_mmap')
-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;
|