summaryrefslogtreecommitdiff
path: root/src/mir_app
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2021-01-18 22:07:35 +0300
committerGeorge Hazan <ghazan@miranda.im>2021-01-18 22:07:35 +0300
commitfe9535acc8ddf5824e70875bceb669f561ea3bf6 (patch)
tree04a312acf2dea0b3fc17beee990a6901205e6041 /src/mir_app
parent6de52a4f80adcbf5861da8e6235491e06415234b (diff)
fixes #2699 (DbChecker does not work with dbx_sqlite)
Diffstat (limited to 'src/mir_app')
-rw-r--r--src/mir_app/src/MDatabaseCommon.cpp18
1 files changed, 17 insertions, 1 deletions
diff --git a/src/mir_app/src/MDatabaseCommon.cpp b/src/mir_app/src/MDatabaseCommon.cpp
index 9191f5baf0..590e6f8dce 100644
--- a/src/mir_app/src/MDatabaseCommon.cpp
+++ b/src/mir_app/src/MDatabaseCommon.cpp
@@ -575,9 +575,25 @@ STDMETHODIMP_(BOOL) MDatabaseCommon::SetSettingResident(BOOL bIsResident, const
/////////////////////////////////////////////////////////////////////////////////////////
+class MDefaultChecker : public MIDatabaseChecker
+{
+ STDMETHODIMP_(int) Start(DBCHeckCallback*) override
+ { return ERROR_SUCCESS;
+ }
+
+ STDMETHODIMP_(BOOL) CheckDb(int /*phase*/) override
+ { return ERROR_OUT_OF_PAPER;
+ }
+
+ STDMETHODIMP_(VOID) Destroy() override
+ {}
+};
+
+static MDefaultChecker sttDefaultChecker;
+
STDMETHODIMP_(MIDatabaseChecker *) MDatabaseCommon::GetChecker()
{
- return nullptr;
+ return &sttDefaultChecker;
}
/////////////////////////////////////////////////////////////////////////////////////////