From 03e6d34e4f99ca3d907b328cf8afd8b7b8152b69 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 19 Jul 2012 09:48:52 +0000 Subject: git-svn-id: http://svn.miranda-ng.org/main/trunk@1036 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Db3x_mmap/dbcontacts.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/Db3x_mmap/dbcontacts.cpp b/plugins/Db3x_mmap/dbcontacts.cpp index 8abdc02ebc..554fe7bd4e 100644 --- a/plugins/Db3x_mmap/dbcontacts.cpp +++ b/plugins/Db3x_mmap/dbcontacts.cpp @@ -215,10 +215,11 @@ STDMETHODIMP_(LONG) CDdxMmap::DeleteContact(HANDLE hContact) STDMETHODIMP_(HANDLE) CDdxMmap::AddContact() { + DWORD ofsNew; log0("add contact"); { mir_cslock lck(csDbAccess); - DWORD ofsNew = CreateNewSpace(sizeof(DBContact)); + ofsNew = CreateNewSpace(sizeof(DBContact)); DBContact dbc = { 0 }; dbc.signature = DBCONTACT_SIGNATURE; -- cgit v1.2.3