summaryrefslogtreecommitdiff
path: root/plugins/Toaster/src/main.cpp
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2015-08-31 07:45:19 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2015-08-31 07:45:19 +0000
commit291d2b6a67bf9501c5427758092805b66aa44dcf (patch)
tree079076be3a220a78fdc5e2b63077adcb407d0ef9 /plugins/Toaster/src/main.cpp
parent081f1880ea898bba1bfd2ba2ff79b5e4de929b86 (diff)
Toaster: more fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@15124 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Toaster/src/main.cpp')
-rw-r--r--plugins/Toaster/src/main.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/plugins/Toaster/src/main.cpp b/plugins/Toaster/src/main.cpp
index 39f4c549b7..004cec4734 100644
--- a/plugins/Toaster/src/main.cpp
+++ b/plugins/Toaster/src/main.cpp
@@ -22,7 +22,6 @@ PLUGININFOEX pluginInfo =
DWORD WINAPI DllMain(HINSTANCE hInstance, DWORD, LPVOID)
{
g_hInstance = hInstance;
-
return TRUE;
}
@@ -34,15 +33,12 @@ extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD)
return NULL;
}
return &pluginInfo;
-
}
extern "C" int __declspec(dllexport) Load(void)
{
mir_getLP(&pluginInfo);
- CoInitialize(NULL);
-
HookEvent(ME_SYSTEM_PRESHUTDOWN, &OnPreShutdown);
InitServices();
@@ -59,13 +55,11 @@ extern "C" int __declspec(dllexport) Load(void)
extern "C" int __declspec(dllexport) Unload(void)
{
- CoUninitialize();
-
return 0;
}
int OnPreShutdown(WPARAM, LPARAM)
{
- HideAllToasts();
+ CallFunctionAsync(&HideAllToasts, NULL);
return 0;
} \ No newline at end of file