diff options
author | George Hazan <george.hazan@gmail.com> | 2013-12-30 12:39:54 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-12-30 12:39:54 +0000 |
commit | 60d2f4aefe8ec6e16d2aa64f585895ea95d7dda9 (patch) | |
tree | 9ca0b76df4844b149499b8377c2b570f2cb725a3 /plugins/Dbx_mmap_SA | |
parent | ae0525e4ceb7f88b808ff94458a4768c9f3cc264 (diff) |
fix for decrypting mmap_sa database
git-svn-id: http://svn.miranda-ng.org/main/trunk@7425 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Dbx_mmap_SA')
-rw-r--r-- | plugins/Dbx_mmap_SA/src/dbintf_sa.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/Dbx_mmap_SA/src/dbintf_sa.cpp b/plugins/Dbx_mmap_SA/src/dbintf_sa.cpp index f3d9a7549d..f4a91c7f70 100644 --- a/plugins/Dbx_mmap_SA/src/dbintf_sa.cpp +++ b/plugins/Dbx_mmap_SA/src/dbintf_sa.cpp @@ -23,6 +23,11 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "commonheaders.h"
+extern "C"
+{
+ MIR_CORE_DLL(void) db_setCurrent(MIDatabase* _db);
+};
+
#define NeedBytes(n) if(bytesRemaining<(n)) pBlob=(PBYTE)DBRead(ofsBlobPtr,(n),&bytesRemaining)
#define MoveAlong(n) {int x=n; pBlob+=(x); ofsBlobPtr+=(x); bytesRemaining-=(x);}
#define VLT(n) ((n==DBVT_UTF8)?DBVT_ASCIIZ:n)
@@ -53,6 +58,7 @@ int CDbxMmapSA::Load(bool bSkipInit) return 1;
// password validated ok? decrypt database
+ db_setCurrent(this);
DecodeAll();
m_bEncoding = false;
WritePlainHeader();
|