diff options
Diffstat (limited to 'plugins/WebView/src')
-rw-r--r-- | plugins/WebView/src/main.cpp | 12 | ||||
-rw-r--r-- | plugins/WebView/src/webview.h | 2 |
2 files changed, 7 insertions, 7 deletions
diff --git a/plugins/WebView/src/main.cpp b/plugins/WebView/src/main.cpp index e8b7bfd899..bcb0c4a2e2 100644 --- a/plugins/WebView/src/main.cpp +++ b/plugins/WebView/src/main.cpp @@ -24,7 +24,7 @@ #include "webview.h"
MWindowList hWindowList;
-HANDLE hNetlibUser;
+HNETLIBUSER hNetlibUser;
HANDLE hHookDisplayDataAlert, hHookAlertPopup, hHookAlertWPopup, hHookErrorPopup, hHookAlertOSD;
int hLangpack = 0;
@@ -147,11 +147,11 @@ extern "C" int __declspec(dllexport) Load() char tempNdesc[50];
mir_snprintf(tempNdesc, "%s connection settings", MODULENAME);
- NETLIBUSER nlu = { sizeof(nlu) };
- nlu.flags = NUF_OUTGOING | NUF_HTTPCONNS;
- nlu.szSettingsModule = MODULENAME;
- nlu.szDescriptiveName = tempNdesc;
- hNetlibUser = (HANDLE) CallService(MS_NETLIB_REGISTERUSER, 0, (LPARAM) & nlu);
+ NETLIBUSER nlu = {};
+ nlu.flags = NUF_OUTGOING | NUF_HTTPCONNS;
+ nlu.szSettingsModule = MODULENAME;
+ nlu.szDescriptiveName = tempNdesc;
+ hNetlibUser = Netlib_RegisterUser(&nlu);
// register webview protocol
PROTOCOLDESCRIPTOR pd = { 0 };
diff --git a/plugins/WebView/src/webview.h b/plugins/WebView/src/webview.h index 837fa18083..28a897de58 100644 --- a/plugins/WebView/src/webview.h +++ b/plugins/WebView/src/webview.h @@ -144,7 +144,7 @@ extern HWND ContactHwnd; extern HINSTANCE hInst;
extern HMENU hMenu;
extern int bpStatus;
-extern HANDLE hNetlibUser;
+extern HNETLIBUSER hNetlibUser;
extern MWindowList hWindowList;
extern HGENMENU hMenuItem1, hMenuItemCountdown;
extern char optionsname[80];
|