From d958e3fb847813075cc059bd5a7aa28252982268 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 11 Jan 2017 22:23:57 +0300 Subject: strong typization - better typization --- plugins/WebView/src/main.cpp | 12 ++++++------ plugins/WebView/src/webview.h | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'plugins/WebView') 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]; -- cgit v1.2.3