From 28412b4c61183eb1b33adeee5dbc8e9cefc92d9f Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 28 Jul 2013 19:14:24 +0000 Subject: varioius minor fixes git-svn-id: http://svn.miranda-ng.org/main/trunk@5517 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/WebView/src/main.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'plugins/WebView/src/main.cpp') diff --git a/plugins/WebView/src/main.cpp b/plugins/WebView/src/main.cpp index 5048e2bf2d..2678c19031 100644 --- a/plugins/WebView/src/main.cpp +++ b/plugins/WebView/src/main.cpp @@ -26,8 +26,9 @@ HANDLE hNetlibUser; HANDLE hWindowList; HANDLE hHookDisplayDataAlert, hHookAlertPopup, hHookAlertWPopup, hHookErrorPopup, hHookAlertOSD; -int hLangpack = 0; +int hLangpack = 0; +CLIST_INTERFACE *pcli; static HMODULE hRichEd = NULL; PLUGININFOEX pluginInfoEx = { @@ -150,6 +151,7 @@ extern "C" int __declspec(dllexport) Unload(void) extern "C" int __declspec(dllexport) Load() { mir_getLP(&pluginInfoEx); + mir_getCLI(); strncpy_s(optionsname, MODULENAME, sizeof(optionsname)); optionsname[0] = toupper(optionsname[0]); @@ -179,7 +181,7 @@ extern "C" int __declspec(dllexport) Load() hNetlibUser = (HANDLE) CallService(MS_NETLIB_REGISTERUSER, 0, (LPARAM) & nlu); // register webview protocol - PROTOCOLDESCRIPTOR pd = { sizeof(pd) }; + PROTOCOLDESCRIPTOR pd = { PROTOCOLDESCRIPTOR_V3_SIZE }; pd.szName = MODULENAME; pd.type = PROTOTYPE_PROTOCOL; CallService(MS_PROTO_REGISTERMODULE, 0, (LPARAM)&pd); -- cgit v1.2.3