From 5d41a4ccb44aaf0893895e9d7cec6cc4dfc156a2 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 2 Apr 2021 15:34:17 +0300 Subject: =?UTF-8?q?fixes=20#2824=20(=D0=9D=D0=BE=D0=B2=D1=8B=D0=B9=20?= =?UTF-8?q?=D0=BF=D1=80=D0=BE=D1=84=D0=B8=D0=BB=D1=8C=20=D0=B0=D0=B2=D1=82?= =?UTF-8?q?=D0=BE=D0=BC=D0=B0=D1=82=D0=B8=D1=87=D0=B5=D1=81=D0=BA=D0=B8=20?= =?UTF-8?q?=D1=81=D0=BE=D0=B7=D0=B4=D0=B0=D1=91=D1=82=D1=81=D1=8F=20=D0=B2?= =?UTF-8?q?=20MDBX)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mir_app/src/database.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mir_app/src/database.cpp b/src/mir_app/src/database.cpp index 612174d972..630d8f9aab 100644 --- a/src/mir_app/src/database.cpp +++ b/src/mir_app/src/database.cpp @@ -416,6 +416,9 @@ static int tryCreateDatabase(const wchar_t *ptszProfile) CreatePathToFileW(ptszProfile); for (auto &p : arDbPlugins) { + if (!(p->capabilities & MDB_CAPS_CREATE)) + continue; + int err = p->makeDatabase(ptszProfile); if (err == ERROR_SUCCESS) { g_bDbCreated = true; -- cgit v1.2.3