From 0360a875912953548e4f785f313294f1022fd657 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 13 Jun 2021 16:49:39 +0300 Subject: fixes #2917 (Changing the password immediately after changing the encryption type destroys db) --- plugins/Dbx_sqlite/src/dbcrypt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/Dbx_sqlite/src') diff --git a/plugins/Dbx_sqlite/src/dbcrypt.cpp b/plugins/Dbx_sqlite/src/dbcrypt.cpp index a59846f387..bfb7d29a8c 100644 --- a/plugins/Dbx_sqlite/src/dbcrypt.cpp +++ b/plugins/Dbx_sqlite/src/dbcrypt.cpp @@ -176,7 +176,7 @@ STDMETHODIMP_(BOOL) CDbxSQLite::EnableEncryption(BOOL bEncrypt) } // Finally update flag - stmt = InitQuery("REPLACE INTO crypto VALUES (1, ?);", qCryptSetKey); + stmt = InitQuery("REPLACE INTO crypto VALUES (1, ?);", qCryptSetMode); sqlite3_bind_int(stmt, 1, bEncrypt); rc = sqlite3_step(stmt); logError(rc, __FILE__, __LINE__); -- cgit v1.2.3