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/SecureIM/src/commonheaders.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/SecureIM/src/commonheaders.cpp') diff --git a/plugins/SecureIM/src/commonheaders.cpp b/plugins/SecureIM/src/commonheaders.cpp index 0ac3f749e3..199942925c 100644 --- a/plugins/SecureIM/src/commonheaders.cpp +++ b/plugins/SecureIM/src/commonheaders.cpp @@ -93,16 +93,16 @@ void CopyToClipboard(HWND hwnd, LPSTR msg) } } -HANDLE hNetlibUser; +HNETLIBUSER hNetlibUser; void InitNetlib() { - NETLIBUSER nl_user = { sizeof(nl_user) }; + NETLIBUSER nl_user = {}; nl_user.szSettingsModule = (LPSTR)MODULENAME; nl_user.szDescriptiveName = (LPSTR)MODULENAME; nl_user.flags = NUF_NOOPTIONS; - hNetlibUser = (HANDLE)CallService(MS_NETLIB_REGISTERUSER, 0, (LPARAM)&nl_user); + hNetlibUser = Netlib_RegisterUser(&nl_user); } void DeinitNetlib() @@ -118,5 +118,5 @@ int Sent_NetLog(const char *fmt, ...) va_start(va, fmt); mir_vsnprintf(szText, sizeof(szText), fmt, va); va_end(va); - return CallService(MS_NETLIB_LOG, (WPARAM)hNetlibUser, (LPARAM)szText); + return Netlib_Log(hNetlibUser, szText); } -- cgit v1.2.3