Browse Source

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

Equivalent code. (false == 0 == DB_LOAD_OK). Fixes #1706.
pull/145/head
xanatos 12 years ago
parent
commit
4f76be1dc5
  1. 2
      src/wallet.cpp

2
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)

Loading…
Cancel
Save