From 1ed1296853c671fc557599c6daf5fba88d52a21f Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 6 Jul 2012 14:44:59 +0000 Subject: + stdauth + stdfile; NEWSTR_ALLOCA / NEWTSTR_ALLOCA / NEWWSTR_ALLOCA moved to m_system.h git-svn-id: http://svn.miranda-ng.org/main/trunk@792 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Dbx_mmap_SA/Import_SA/miranda.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'plugins/Dbx_mmap_SA/Import_SA') diff --git a/plugins/Dbx_mmap_SA/Import_SA/miranda.cpp b/plugins/Dbx_mmap_SA/Import_SA/miranda.cpp index 21ece87022..c0d56d1bf7 100644 --- a/plugins/Dbx_mmap_SA/Import_SA/miranda.cpp +++ b/plugins/Dbx_mmap_SA/Import_SA/miranda.cpp @@ -56,8 +56,6 @@ static HANDLE ImportContact(HANDLE hDbFile, struct DBContact Contact); static void ImportHistory(HANDLE hDbFile, struct DBContact Contact, PROTOCOLDESCRIPTOR **protocol, int protoCount); static int ImportGroups(HANDLE hDbFile, struct DBHeader *pdbHeader); -#define NEWSTR_ALLOCA(A) (A==NULL)?NULL:strcpy((char*)alloca(strlen(A)+1),A) - // Comment: The Find* functions only return a file offset. // The Get* functions actually reads the requested // data from the file and gives you a pointer to a structure @@ -529,7 +527,7 @@ int CheckFileFormat(HANDLE hDbFile) AddMessage(LPGEN("Secured MMAP: authorization successful")); bEncrypted = TRUE; } - else + else { AddMessage(LPGEN("You are not authorized for access to Database")); return DB_INVALID; @@ -1046,7 +1044,7 @@ int ImportGroups(HANDLE hDbFile, struct DBHeader* pdbHeader) pSetting = GetNextSetting(pSetting); } free(pDbSettings); - + /*if (bEncrypted) EncodeMemory(pDbSettings->blob, pDbSettings->cbBlob);*/ } -- cgit v1.2.3