summaryrefslogtreecommitdiff
path: root/plugins/Dropbox/src/dropbox_events.cpp
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/Dropbox/src/dropbox_events.cpp
parentc8e1c429321ed8aa2efce0fc00b6dfd08f1b2735 (diff)
strong typization - better typization
Diffstat (limited to 'plugins/Dropbox/src/dropbox_events.cpp')
-rw-r--r--plugins/Dropbox/src/dropbox_events.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Dropbox/src/dropbox_events.cpp b/plugins/Dropbox/src/dropbox_events.cpp
index 0d5c915006..0384bb127c 100644
--- a/plugins/Dropbox/src/dropbox_events.cpp
+++ b/plugins/Dropbox/src/dropbox_events.cpp
@@ -23,11 +23,11 @@ int CDropbox::OnModulesLoaded(WPARAM, LPARAM)
HookEventObj(ME_MSG_WINDOWEVENT, GlobalEvent<&CDropbox::OnSrmmWindowOpened>, this);
HookEventObj(ME_FILEDLG_CANCELED, GlobalEvent<&CDropbox::OnFileDialogCancelled>, this);
- NETLIBUSER nlu = { sizeof(nlu) };
+ NETLIBUSER nlu = {};
nlu.flags = NUF_INCOMING | NUF_OUTGOING | NUF_HTTPCONNS | NUF_UNICODE;
nlu.szSettingsModule = MODULE;
nlu.ptszDescriptiveName = L"Dropbox";
- hNetlibConnection = (HANDLE)CallService(MS_NETLIB_REGISTERUSER, 0, (LPARAM)&nlu);
+ hNetlibConnection = Netlib_RegisterUser(&nlu);
GetDefaultContact();