summaryrefslogtreecommitdiff
path: root/plugins/Db3x_mmap/dbheaders.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-07-21 18:25:03 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-07-21 18:25:03 +0000
commitc2df6e7bbf6efdb36f751379c154623191864a1f (patch)
tree5c48d94f0072a91e137838bee6b04b9623bdad25 /plugins/Db3x_mmap/dbheaders.cpp
parentf8d3f34a53fbd10eab110b77d3260c38ee5e0f01 (diff)
Dbx_mmap_SA ready
git-svn-id: http://svn.miranda-ng.org/main/trunk@1094 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Db3x_mmap/dbheaders.cpp')
-rw-r--r--plugins/Db3x_mmap/dbheaders.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/Db3x_mmap/dbheaders.cpp b/plugins/Db3x_mmap/dbheaders.cpp
index 32ed0091cb..3d18a373fa 100644
--- a/plugins/Db3x_mmap/dbheaders.cpp
+++ b/plugins/Db3x_mmap/dbheaders.cpp
@@ -25,12 +25,14 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
//the cache has not been loaded when these functions are used
+extern DBSignature dbSignature;
+
int CDdxMmap::CreateDbHeaders()
{
DBContact user;
DWORD bytesWritten;
- CopyMemory(m_dbHeader.signature,&dbSignature,sizeof(m_dbHeader.signature));
+ CopyMemory(m_dbHeader.signature, &dbSignature,sizeof(m_dbHeader.signature));
m_dbHeader.version = DB_THIS_VERSION;
m_dbHeader.ofsFileEnd = sizeof(struct DBHeader);
m_dbHeader.slackSpace = 0;