diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2016-03-22 15:11:48 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2016-03-22 15:11:48 +0000 |
commit | d2c91898a866006be4bd56b00e5cd36112ca5e06 (patch) | |
tree | 614d9d17e05739433fdbe68d247c5f199cdba019 /plugins/Dbx_mdb/src/lmdb | |
parent | ce1bf81b56ff2dad89b1f783d6377b20eebea0a4 (diff) |
dbx_lmdb: some fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@16522 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Dbx_mdb/src/lmdb')
-rw-r--r-- | plugins/Dbx_mdb/src/lmdb/mdb.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/Dbx_mdb/src/lmdb/mdb.c b/plugins/Dbx_mdb/src/lmdb/mdb.c index 57f03fc6db..deca377af2 100644 --- a/plugins/Dbx_mdb/src/lmdb/mdb.c +++ b/plugins/Dbx_mdb/src/lmdb/mdb.c @@ -1392,7 +1392,7 @@ mdb_strerror(int err) # define mdb_assert0(env, expr, expr_txt) ((expr) ? (void)0 : \ mdb_assert_fail(env, expr_txt, mdb_func_, __FILE__, __LINE__)) -extern void __cdecl dbpanic(void *); +extern void __cdecl LMDB_FailAssert(void *, const char*); static void mdb_assert_fail(MDB_env *env, const char *expr_txt, @@ -1406,8 +1406,8 @@ mdb_assert_fail(MDB_env *env, const char *expr_txt, fprintf(stderr, "%s\n", buf); if (IsDebuggerPresent()) DebugBreak(); - _beginthread(dbpanic, 0, 0); - Sleep(INFINITE); + + LMDB_FailAssert(env->me_userctx, buf); } #else # define mdb_assert0(env, expr, expr_txt) ((void) 0) |