summaryrefslogtreecommitdiff
path: root/plugins/Toaster/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Toaster/src/main.cpp')
-rw-r--r--plugins/Toaster/src/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Toaster/src/main.cpp b/plugins/Toaster/src/main.cpp
index 4fd340fb81..06c61e2dc0 100644
--- a/plugins/Toaster/src/main.cpp
+++ b/plugins/Toaster/src/main.cpp
@@ -46,13 +46,13 @@ int CMPlugin::Load()
HookEvent(ME_OPT_INITIALISE, OnOptionsInitialized);
HookEvent(ME_SYSTEM_SHUTDOWN, &OnShutdown);
- InitServices();
-
if (GetEnvironmentVariableW(L"TEMP", wszTempDir, MAX_PATH) != 0) {
wcscat_s(wszTempDir, L"\\Miranda.Toaster");
CreateDirectoryTreeW(wszTempDir);
}
else MessageBox(nullptr, TranslateT("Failed to create temporary directory"), _T(MODULENAME), MB_OK | MB_ICONERROR);
+ InitServices();
+
return 0;
}