summaryrefslogtreecommitdiff
path: root/plugins/WebView/src/main.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-07-28 19:14:24 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-07-28 19:14:24 +0000
commit28412b4c61183eb1b33adeee5dbc8e9cefc92d9f (patch)
tree4becbf91e50b6b5fca0b600c26b2dc2a72a279c1 /plugins/WebView/src/main.cpp
parent2bf7e3ba50b1bf547c726523cf842e9263d5db18 (diff)
varioius minor fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@5517 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/WebView/src/main.cpp')
-rw-r--r--plugins/WebView/src/main.cpp6
1 files changed, 4 insertions, 2 deletions
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);