diff options
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;
}
|