From 4f76be1dc5a105aaf267e00166c6837da19dc862 Mon Sep 17 00:00:00 2001 From: xanatos Date: Wed, 5 Sep 2012 11:32:13 +0300 Subject: [PATCH] Correct LoadWallet() return value (false -> DB_LOAD_OK) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Equivalent code. (false == 0 == DB_LOAD_OK). Fixes #1706. --- src/wallet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wallet.cpp b/src/wallet.cpp index 2f312d80..f88a0e14 100644 --- a/src/wallet.cpp +++ b/src/wallet.cpp @@ -1367,7 +1367,7 @@ string CWallet::SendMoneyToDestination(const CTxDestination& address, int64 nVal int CWallet::LoadWallet(bool& fFirstRunRet) { if (!fFileBacked) - return false; + return DB_LOAD_OK; fFirstRunRet = false; int nLoadWalletRet = CWalletDB(strWalletFile,"cr+").LoadWallet(this); if (nLoadWalletRet == DB_NEED_REWRITE)