From 291d2b6a67bf9501c5427758092805b66aa44dcf Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Mon, 31 Aug 2015 07:45:19 +0000 Subject: Toaster: more fixes git-svn-id: http://svn.miranda-ng.org/main/trunk@15124 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Toaster/src/main.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'plugins/Toaster/src/main.cpp') 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 -- cgit v1.2.3