Correct LoadWallet() return value (false -> DB_LOAD_OK)

Equivalent code. (false == 0 == DB_LOAD_OK). Fixes #1706.
This commit is contained in:
xanatos
2012-09-05 11:32:13 +03:00
committed by Luke Dashjr
parent b9b15578bb
commit c1124277c5

View File

@@ -1129,7 +1129,7 @@ string CWallet::SendMoneyToBitcoinAddress(const CBitcoinAddress& address, int64
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)