diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mir_app/src/database.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mir_app/src/database.cpp b/src/mir_app/src/database.cpp index 58e731c567..002be18879 100644 --- a/src/mir_app/src/database.cpp +++ b/src/mir_app/src/database.cpp @@ -255,6 +255,12 @@ static int getProfile1(wchar_t *szProfile, size_t cch, wchar_t *profiledir, BOOL continue;
switch (touchDatabase(newProfile, nullptr)) {
+ case EGROKPRF_CANTREAD:
+ // profile might be locked by another Miranda
+ if (!Profile_CheckOpened(newProfile))
+ break;
+ __fallthrough;
+
case 0:
case EGROKPRF_OBSOLETE:
if (++found == 1 && bNoDefaultProfile)
|