summaryrefslogtreecommitdiff
path: root/plugins/Toaster/src
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2015-08-28 16:35:28 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2015-08-28 16:35:28 +0000
commit7496a513f28bf3bdf303f49c2f25de8e7506e51a (patch)
tree69b01ce0a058029f6f8e93b3ee58fdfc36fdbf95 /plugins/Toaster/src
parentc370af60855db957c5b200914bf0bde743845528 (diff)
Toaster: callservice removed from MirandaPluginInfoEx
git-svn-id: http://svn.miranda-ng.org/main/trunk@15065 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Toaster/src')
-rw-r--r--plugins/Toaster/src/main.cpp22
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;
}