From 176e52e14fd0358a7f26ca8d7b0205244dfde2e7 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 23 May 2018 23:29:25 +0300 Subject: no need to initialize pcli variable in each plugin (only in Clist_*) --- plugins/ZeroSwitch/src/ZeroSwitch.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'plugins/ZeroSwitch') diff --git a/plugins/ZeroSwitch/src/ZeroSwitch.cpp b/plugins/ZeroSwitch/src/ZeroSwitch.cpp index 6d89d004d4..7b55436f59 100644 --- a/plugins/ZeroSwitch/src/ZeroSwitch.cpp +++ b/plugins/ZeroSwitch/src/ZeroSwitch.cpp @@ -11,7 +11,6 @@ g_plugin; HHOOK hHook; HWND hDummyWnd = nullptr, hHelperWnd = nullptr, hMirandaWnd = nullptr; -CLIST_INTERFACE *pcli; ///////////////////////////////////////////////////////////////////////////////////////// @@ -114,7 +113,7 @@ LRESULT CALLBACK CallWndRetProc(int nCode, WPARAM wParam, LPARAM lParam) { pMes = (PCWPRETSTRUCT)lParam; // Get message details if (!hMirandaWnd) - hMirandaWnd = pcli->hwndContactList; + hMirandaWnd = g_CLI.hwndContactList; if (pMes->hwnd == hMirandaWnd) { @@ -134,8 +133,6 @@ LRESULT CALLBACK CallWndRetProc(int nCode, WPARAM wParam, LPARAM lParam) extern "C" int __declspec(dllexport) Load(void) { - pcli = Clist_GetInterface(); - if (IsWinVerVistaPlus()) { MessageBox(nullptr, TranslateT("Plugin works under Windows XP only"), TranslateT("ZeroSwitch plugin failed"), MB_ICONSTOP); return 1; -- cgit v1.2.3