From d2c91898a866006be4bd56b00e5cd36112ca5e06 Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Tue, 22 Mar 2016 15:11:48 +0000 Subject: dbx_lmdb: some fixes git-svn-id: http://svn.miranda-ng.org/main/trunk@16522 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Dbx_mdb/src/lmdb/mdb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/Dbx_mdb/src/lmdb') 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) -- cgit v1.2.3