From be8e1f8479ff46c99f97ac3e396736d36e5458c6 Mon Sep 17 00:00:00 2001 From: Philip Kaufmann Date: Sun, 18 Nov 2012 11:58:32 +0100 Subject: Bitcoin-Qt: fix crash on Windows caused by CDBEnv::EnvShutdown() - can be triggerd by just adding -proxy=crashme with 0.7.1 - crash occured, when AppInit2() was left with return false; after the first call to bitdb.open() (Step 6 in init) - this is caused by GetDataDir() or .string() in CDBEnv::EnvShutdown() called via the bitdb global destructor - init fDbEnvInit and fMockDb to false in CDBEnv::CDBEnv() --- src/db.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/db.h') diff --git a/src/db.h b/src/db.h index 0bcece7803..9c01060a1c 100644 --- a/src/db.h +++ b/src/db.h @@ -33,6 +33,7 @@ class CDBEnv private: bool fDbEnvInit; bool fMockDb; + std::string strPath; void EnvShutdown(); -- cgit v1.2.3