diff options
author | George Hazan <ghazan@miranda.im> | 2021-01-08 18:31:42 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2021-01-08 18:31:42 +0300 |
commit | dd3d028511f6d94b9b6017a1a26399da3465f3c2 (patch) | |
tree | 7f283b40067761e3049f21a630d1e224c0319c90 /plugins/Dbx_sqlite/src/dbintf.cpp | |
parent | 8f3e583fffeba6606cf4442008c65e6902308080 (diff) |
s-shit
Diffstat (limited to 'plugins/Dbx_sqlite/src/dbintf.cpp')
-rwxr-xr-x | plugins/Dbx_sqlite/src/dbintf.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/plugins/Dbx_sqlite/src/dbintf.cpp b/plugins/Dbx_sqlite/src/dbintf.cpp index 9cc637103d..b219cb11af 100755 --- a/plugins/Dbx_sqlite/src/dbintf.cpp +++ b/plugins/Dbx_sqlite/src/dbintf.cpp @@ -142,14 +142,15 @@ MDatabaseCommon* CDbxSQLite::Load(const wchar_t *profile, int readonly) CDbxSQLite *db = new CDbxSQLite(database); - if (!db->InitCrypt()) { - delete db; - return nullptr; - } - db->InitContacts(); db->InitSettings(); db->InitEvents(); + + if (db->InitCrypt()) { + delete db; + return nullptr; + } + return db; } |