summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mir_app/src/newplugins.cpp1
-rw-r--r--src/miranda32/src/miranda.cpp2
2 files changed, 1 insertions, 2 deletions
diff --git a/src/mir_app/src/newplugins.cpp b/src/mir_app/src/newplugins.cpp
index 12786e4692..ed8b47670c 100644
--- a/src/mir_app/src/newplugins.cpp
+++ b/src/mir_app/src/newplugins.cpp
@@ -862,6 +862,7 @@ static BOOL scanPluginsDir(WIN32_FIND_DATA *fd, wchar_t *path, WPARAM, LPARAM)
int LoadNewPluginsModuleInfos(void)
{
bModuleInitialized = TRUE;
+ DeleteFile(L"mir_core.dll");
LoadPluginOptions();
diff --git a/src/miranda32/src/miranda.cpp b/src/miranda32/src/miranda.cpp
index bb95ad1e56..a42b367110 100644
--- a/src/miranda32/src/miranda.cpp
+++ b/src/miranda32/src/miranda.cpp
@@ -49,8 +49,6 @@ int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE, LPTSTR cmdLine, int)
GetEnvironmentVariable(L"PATH", ptszVal + cbPath + 1, cbSize);
SetEnvironmentVariable(L"PATH", ptszVal);
- DeleteFile(L"mir_core.dll");
-
int retVal;
HINSTANCE hMirApp = LoadLibrary(L"mir_app.mir");
if (hMirApp == NULL) {