summaryrefslogtreecommitdiff
path: root/plugins/Watrack_MPD/src/init.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Watrack_MPD/src/init.cpp')
-rwxr-xr-xplugins/Watrack_MPD/src/init.cpp7
1 files changed, 3 insertions, 4 deletions
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;