summaryrefslogtreecommitdiff
path: root/plugins/WebView/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/WebView/src/main.cpp')
-rw-r--r--plugins/WebView/src/main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/WebView/src/main.cpp b/plugins/WebView/src/main.cpp
index 8cd85bd533..1495f107ff 100644
--- a/plugins/WebView/src/main.cpp
+++ b/plugins/WebView/src/main.cpp
@@ -179,7 +179,8 @@ extern "C" int __declspec(dllexport) Load()
hNetlibUser = (HANDLE) CallService(MS_NETLIB_REGISTERUSER, 0, (LPARAM) & nlu);
// register webview protocol
- PROTOCOLDESCRIPTOR pd = { PROTOCOLDESCRIPTOR_V3_SIZE };
+ PROTOCOLDESCRIPTOR pd = { 0 };
+ pd.cbSize = sizeof(pd);
pd.szName = MODULENAME;
pd.type = PROTOTYPE_PROTOCOL;
CallService(MS_PROTO_REGISTERMODULE, 0, (LPARAM)&pd);