diff options
Diffstat (limited to 'plugins/Toaster/src/main.cpp')
-rw-r--r-- | plugins/Toaster/src/main.cpp | 8 |
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 |