summaryrefslogtreecommitdiff
path: root/plugins/Watrack_MPD/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-01-11 22:23:57 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-01-11 22:24:06 +0300
commitd958e3fb847813075cc059bd5a7aa28252982268 (patch)
treed9c02a7ddee830628248219e9c83c7de3c335140 /plugins/Watrack_MPD/src
parentc8e1c429321ed8aa2efce0fc00b6dfd08f1b2735 (diff)
strong typization - better typization
Diffstat (limited to 'plugins/Watrack_MPD/src')
-rwxr-xr-xplugins/Watrack_MPD/src/init.cpp7
-rwxr-xr-xplugins/Watrack_MPD/src/stdafx.h2
2 files changed, 4 insertions, 5 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;
diff --git a/plugins/Watrack_MPD/src/stdafx.h b/plugins/Watrack_MPD/src/stdafx.h
index f339704541..8d40410cd9 100755
--- a/plugins/Watrack_MPD/src/stdafx.h
+++ b/plugins/Watrack_MPD/src/stdafx.h
@@ -34,7 +34,7 @@
#define szModuleName "Watrack_MPD"
extern HINSTANCE hInst;
-extern HANDLE ghNetlibUser;
+extern HNETLIBUSER ghNetlibUser;
extern BOOL bWatrackService;
extern wchar_t *gbHost, *gbPassword;
extern WORD gbPort;