summaryrefslogtreecommitdiff
path: root/plugins/wbOSD
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-09-18 18:33:09 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-09-18 18:33:09 +0300
commit3e9e96f6718b13c069138fb40f24f065ac03c6b7 (patch)
treed09301e8d63cf2bc70601fe683992440d4e2e086 /plugins/wbOSD
parentb5de62080a2384e9f66d7bafbf971aa5b4b7c0c1 (diff)
unneeded calls of DestroyServiceFunction() removed
Diffstat (limited to 'plugins/wbOSD')
-rw-r--r--plugins/wbOSD/src/main.cpp2
-rw-r--r--plugins/wbOSD/src/stdafx.h1
-rw-r--r--plugins/wbOSD/src/wbOSD.cpp2
3 files changed, 1 insertions, 4 deletions
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);