diff options
Diffstat (limited to 'plugins/Dbx_mdbx/src/dbcrypt.cpp')
-rw-r--r-- | plugins/Dbx_mdbx/src/dbcrypt.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/Dbx_mdbx/src/dbcrypt.cpp b/plugins/Dbx_mdbx/src/dbcrypt.cpp index 0a6585e565..e22b3a293d 100644 --- a/plugins/Dbx_mdbx/src/dbcrypt.cpp +++ b/plugins/Dbx_mdbx/src/dbcrypt.cpp @@ -62,6 +62,7 @@ CRYPTO_PROVIDER* CDbxMDBX::SelectProvider() return nullptr;
}
+ DBFlush();
return pProv;
}
@@ -137,6 +138,7 @@ void CDbxMDBX::StoreKey() }
SecureZeroMemory(pKey, iKeyLength);
+ DBFlush();
}
void CDbxMDBX::SetPassword(const wchar_t *ptszPassword)
@@ -228,6 +230,7 @@ int CDbxMDBX::EnableEncryption(bool bEncrypted) if (trnlck.commit() != MDBX_SUCCESS)
return 1;
+ DBFlush();
m_bEncrypted = bEncrypted;
return 0;
}
|