diff options
author | George Hazan <george.hazan@gmail.com> | 2015-01-08 14:44:50 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-01-08 14:44:50 +0000 |
commit | 2528f3b4fa08ddce81d27f591dfb6c1dbc214a71 (patch) | |
tree | c2a62f888b15ae55f0e4a5da28a775d3be4c5dcb /plugins/Dbx_mdb/src/dbmodulechain.cpp | |
parent | 166213fbc42066680b8423a735d36eb260a30c75 (diff) |
next compilable variant
git-svn-id: http://svn.miranda-ng.org/main/trunk@11797 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Dbx_mdb/src/dbmodulechain.cpp')
-rw-r--r-- | plugins/Dbx_mdb/src/dbmodulechain.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/plugins/Dbx_mdb/src/dbmodulechain.cpp b/plugins/Dbx_mdb/src/dbmodulechain.cpp index 33cb289561..6f9a8fc15e 100644 --- a/plugins/Dbx_mdb/src/dbmodulechain.cpp +++ b/plugins/Dbx_mdb/src/dbmodulechain.cpp @@ -35,12 +35,8 @@ void CDbxMdb::AddToList(char *name, DWORD ofs) int CDbxMdb::InitModuleNames(void)
{
- MDB_txn *txn; - mdb_txn_begin(m_pMdbEnv, NULL, 0, &txn); - mdb_open(txn, "mods", MDB_CREATE | MDB_DUPSORT | MDB_DUPFIXED, &m_dbModules); -
MDB_cursor *cursor; - mdb_cursor_open(txn, m_dbModules, &cursor); + mdb_cursor_open(m_txn, m_dbModules, &cursor); int rc, moduleId; char moduleName[100]; @@ -49,7 +45,6 @@ int CDbxMdb::InitModuleNames(void) AddToList(moduleName, moduleId);
mdb_cursor_close(cursor); - mdb_txn_abort(txn); return 0;
}
|