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/Non-IM Contact/src/http.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'plugins/Non-IM Contact/src/http.cpp') diff --git a/plugins/Non-IM Contact/src/http.cpp b/plugins/Non-IM Contact/src/http.cpp index 9ffaf1383d..e63521df09 100644 --- a/plugins/Non-IM Contact/src/http.cpp +++ b/plugins/Non-IM Contact/src/http.cpp @@ -25,7 +25,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. char *szInfo; char *szData; -HANDLE hNetlibUser; +HNETLIBUSER hNetlibUser; // function to download webpage from the internet // szUrl = URL of the webpage to be retrieved @@ -73,7 +73,7 @@ int InternetDownloadFile(char *szUrl) } } // log the new url into netlib log - CallService(MS_NETLIB_LOG, (WPARAM)hNetlibUser, (LPARAM)szData); + Netlib_Log(hNetlibUser, szData); } } // if the data does not downloaded successfully (ie. disconnected), then return 1 as error code @@ -92,10 +92,9 @@ int InternetDownloadFile(char *szUrl) void NetlibInit() { - NETLIBUSER nlu = { 0 }; - nlu.cbSize = sizeof(nlu); + NETLIBUSER nlu = {}; nlu.flags = NUF_OUTGOING | NUF_HTTPCONNS | NUF_NOHTTPSOPTION | NUF_UNICODE; nlu.szSettingsModule = MODNAME; nlu.ptszDescriptiveName = TranslateT("Non-IM Contacts"); - hNetlibUser = (HANDLE)CallService(MS_NETLIB_REGISTERUSER, 0, (LPARAM)&nlu); + hNetlibUser = Netlib_RegisterUser(&nlu); } -- cgit v1.2.3