From 3e9e96f6718b13c069138fb40f24f065ac03c6b7 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 18 Sep 2017 18:33:09 +0300 Subject: unneeded calls of DestroyServiceFunction() removed --- plugins/wbOSD/src/main.cpp | 2 -- plugins/wbOSD/src/stdafx.h | 1 - plugins/wbOSD/src/wbOSD.cpp | 2 +- 3 files changed, 1 insertion(+), 4 deletions(-) (limited to 'plugins/wbOSD/src') diff --git a/plugins/wbOSD/src/main.cpp b/plugins/wbOSD/src/main.cpp index a4ee1541bb..ad1213f930 100644 --- a/plugins/wbOSD/src/main.cpp +++ b/plugins/wbOSD/src/main.cpp @@ -12,7 +12,6 @@ Distributed under GNU's GPL 2 or later HINSTANCE hI; HWND g_hWnd = 0; -HANDLE hservosda; int hLangpack = 0; CLIST_INTERFACE *pcli; HANDLE hHookedInit, hProtoAck, hContactSettingChanged, hHookContactStatusChanged, hContactStatusChanged; @@ -63,7 +62,6 @@ extern "C" __declspec(dllexport) int Unload() UnhookEvent(hContactStatusChanged); UnhookEvent(hHookedInit); - DestroyServiceFunction(hservosda); DestroyHookableEvent(hHookContactStatusChanged); return 0; } diff --git a/plugins/wbOSD/src/stdafx.h b/plugins/wbOSD/src/stdafx.h index 3c301b30a1..b3652aca22 100644 --- a/plugins/wbOSD/src/stdafx.h +++ b/plugins/wbOSD/src/stdafx.h @@ -113,5 +113,4 @@ void loadDBSettings(plgsettings *ps); extern HINSTANCE hI; extern HWND g_hWnd; -extern HANDLE hservosda; extern HANDLE hHookedInit, hProtoAck, hContactSettingChanged, hHookContactStatusChanged, hContactStatusChanged; \ No newline at end of file diff --git a/plugins/wbOSD/src/wbOSD.cpp b/plugins/wbOSD/src/wbOSD.cpp index b48bfd6ee0..5034133a09 100644 --- a/plugins/wbOSD/src/wbOSD.cpp +++ b/plugins/wbOSD/src/wbOSD.cpp @@ -288,7 +288,7 @@ int MainInit(WPARAM, LPARAM) SetLayeredWindowAttributes(g_hWnd, db_get_dw(NULL, THIS_MODULE, "bkclr", DEFAULT_BKCLR), db_get_b(NULL, THIS_MODULE, "alpha", DEFAULT_ALPHA), (db_get_b(NULL, THIS_MODULE, "transparent", DEFAULT_TRANPARENT) ? LWA_COLORKEY : 0) | LWA_ALPHA); - hservosda = CreateServiceFunction("OSD/Announce", OSDAnnounce); + CreateServiceFunction("OSD/Announce", OSDAnnounce); HookEvent(ME_DB_EVENT_ADDED, HookedNewEvent); -- cgit v1.2.3