From 23617c95e41dc21347d4957c29fe5989a36e2a85 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 3 Jan 2014 12:19:42 +0000 Subject: more correct way of writing signatures git-svn-id: http://svn.miranda-ng.org/main/trunk@7477 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Db3x_mmap/src/dbcrypt.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'plugins/Db3x_mmap/src/dbcrypt.cpp') diff --git a/plugins/Db3x_mmap/src/dbcrypt.cpp b/plugins/Db3x_mmap/src/dbcrypt.cpp index 7aa8a0c046..00cab246e8 100644 --- a/plugins/Db3x_mmap/src/dbcrypt.cpp +++ b/plugins/Db3x_mmap/src/dbcrypt.cpp @@ -184,8 +184,7 @@ LBL_SetNewKey: EnumModuleNames(sttModuleEnum, this); // upgrade signature - memcpy(&m_dbHeader.signature, &dbSignatureU, sizeof(dbSignatureU)); - DBWrite(0, &dbSignatureU, sizeof(dbSignatureU)); + WriteSignature(dbSignatureU); } if (m_dbHeader.version == DB_OLD_VERSION) { -- cgit v1.2.3