diff options
author | George Hazan <ghazan@miranda.im> | 2021-06-13 16:49:39 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2021-06-13 16:49:39 +0300 |
commit | 0360a875912953548e4f785f313294f1022fd657 (patch) | |
tree | 7dd86ade654d90aad21856eb274de12921f18abc /plugins/Dbx_sqlite | |
parent | b1994b49c2eefeba8472eb46418b961422640f18 (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.cpp | 2 |
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__); |