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/LotusNotify/src/debug.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'plugins/LotusNotify/src') diff --git a/plugins/LotusNotify/src/debug.cpp b/plugins/LotusNotify/src/debug.cpp index 8acf5c0a63..e814d6f508 100644 --- a/plugins/LotusNotify/src/debug.cpp +++ b/plugins/LotusNotify/src/debug.cpp @@ -1,16 +1,15 @@ #include "stdafx.h" #include "debug.h" -HANDLE netlibHandle; +HNETLIBUSER netlibHandle; void logRegister(){ // Register netlib user for logging function - NETLIBUSER nlu = { 0 }; - nlu.cbSize = sizeof(nlu); + NETLIBUSER nlu = {}; nlu.flags = NUF_UNICODE | NUF_NOOPTIONS; nlu.szSettingsModule = PLUGINNAME; nlu.ptszDescriptiveName = mir_a2u(PLUGINNAME); - netlibHandle = (HANDLE)CallService(MS_NETLIB_REGISTERUSER, 0, (LPARAM)&nlu); + netlibHandle = Netlib_RegisterUser(&nlu); } void logUnregister(){ @@ -21,7 +20,7 @@ void logUnregister(){ void log(const wchar_t* szText){ if (netlibHandle) { - CallService(MS_NETLIB_LOGW, (WPARAM)netlibHandle, (LPARAM)szText); + Netlib_LogW(netlibHandle, szText); } #ifdef _DEBUG -- cgit v1.2.3