summaryrefslogtreecommitdiff
path: root/plugins/Dbx_sqlite
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2021-06-13 16:49:39 +0300
committerGeorge Hazan <ghazan@miranda.im>2021-06-13 16:49:39 +0300
commit0360a875912953548e4f785f313294f1022fd657 (patch)
tree7dd86ade654d90aad21856eb274de12921f18abc /plugins/Dbx_sqlite
parentb1994b49c2eefeba8472eb46418b961422640f18 (diff)
fixes #2917 (Changing the password immediately after changing the encryption type destroys db)
Diffstat (limited to 'plugins/Dbx_sqlite')
-rw-r--r--plugins/Dbx_sqlite/src/dbcrypt.cpp2
1 files changed, 1 insertions, 1 deletions
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__);