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/Watrack_MPD/src/init.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'plugins/Watrack_MPD/src/init.cpp') diff --git a/plugins/Watrack_MPD/src/init.cpp b/plugins/Watrack_MPD/src/init.cpp index eedf62bd0c..2d2989289c 100755 --- a/plugins/Watrack_MPD/src/init.cpp +++ b/plugins/Watrack_MPD/src/init.cpp @@ -21,7 +21,7 @@ BOOL bWatrackService = FALSE; int hLangpack = 0; wchar_t *gbHost, *gbPassword; WORD gbPort; -HANDLE ghNetlibUser; +HNETLIBUSER ghNetlibUser; PLUGININFOEX pluginInfo={ sizeof(PLUGININFOEX), @@ -57,12 +57,11 @@ void InitVars() static int OnModulesLoaded(WPARAM, LPARAM) { - NETLIBUSER nlu = {0}; - nlu.cbSize = sizeof(nlu); + NETLIBUSER nlu = {}; nlu.flags = NUF_OUTGOING | NUF_HTTPCONNS | NUF_UNICODE; nlu.ptszDescriptiveName = TranslateT("Watrack MPD connection"); nlu.szSettingsModule = __PLUGIN_NAME; - ghNetlibUser = (HANDLE)CallService(MS_NETLIB_REGISTERUSER, 0, (LPARAM)&nlu); + ghNetlibUser = Netlib_RegisterUser(&nlu); InitVars(); if (ServiceExists(MS_WAT_PLAYER)) bWatrackService = TRUE; -- cgit v1.2.3