diff options
-rw-r--r-- | plugins/Toaster/src/main.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/plugins/Toaster/src/main.cpp b/plugins/Toaster/src/main.cpp index 4b396ff19b..009c2caea3 100644 --- a/plugins/Toaster/src/main.cpp +++ b/plugins/Toaster/src/main.cpp @@ -33,7 +33,17 @@ extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD) MessageBox(NULL, TranslateT("This plugin only supports Windows 8 or higher"), _T(MODULE), MB_OK | MB_ICONERROR);
return NULL;
}
- else if (IsWinVer8Plus() && !IsWinVer10Plus())
+ return &pluginInfo;
+
+}
+
+extern "C" int __declspec(dllexport) Load(void)
+{
+ mir_getLP(&pluginInfo);
+ HookEvent(ME_SYSTEM_PRESHUTDOWN, &OnPreShutdown);
+ InitServices();
+
+ if (IsWinVer8Plus() && !IsWinVer10Plus())
{
if (ServiceExists("AddToStartMenu/Add"))
{
@@ -42,18 +52,8 @@ extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD) else
{
MessageBox(NULL, TranslateT("In Windows8 desktop application must have a shortcut on the Start menu. Please, install \"AddToStartMenu\" plugin."), _T(MODULE), MB_OK | MB_ICONERROR);
- return NULL;
}
}
- return &pluginInfo;
-
-}
-
-extern "C" int __declspec(dllexport) Load(void)
-{
- mir_getLP(&pluginInfo);
- HookEvent(ME_SYSTEM_PRESHUTDOWN, &OnPreShutdown);
- InitServices();
return 0;
}
|