diff options
-rw-r--r-- | src/mir_app/src/database.cpp | 5 | ||||
-rw-r--r-- | src/miranda32/src/miranda.cpp | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/mir_app/src/database.cpp b/src/mir_app/src/database.cpp index d20361c3b4..c48bb5941f 100644 --- a/src/mir_app/src/database.cpp +++ b/src/mir_app/src/database.cpp @@ -492,6 +492,11 @@ int LoadDatabaseModule(void) PathToAbsoluteW(L".", tmp);
_wchdir(tmp);
+ while (!_waccess(L"libmdbx.mir", 0)) {
+ DeleteFileW(L"libmdbx.mir"); // just to be sure
+ SleepEx(50, TRUE);
+ }
+
// find out which profile to load
MFilePath szProfile;
if (!getProfile(szProfile))
diff --git a/src/miranda32/src/miranda.cpp b/src/miranda32/src/miranda.cpp index 5248583f03..59e5dde9df 100644 --- a/src/miranda32/src/miranda.cpp +++ b/src/miranda32/src/miranda.cpp @@ -37,8 +37,6 @@ const wchar_t wszQuestion[] = L"Miranda NG needs the Visual Studio runtime libra int WINAPI wWinMain(HINSTANCE, HINSTANCE, LPTSTR cmdLine, int)
{
- DeleteFileW(L"libmdbx.mir"); // just to be sure
-
int retVal;
HINSTANCE hMirApp = LoadLibraryW(L"mir_app.mir");
if (hMirApp == nullptr) {
|