summaryrefslogtreecommitdiff
path: root/MySpace/net.cpp
diff options
context:
space:
mode:
authorsje <sje@4f64403b-2f21-0410-a795-97e2b3489a10>2007-07-02 05:52:03 +0000
committersje <sje@4f64403b-2f21-0410-a795-97e2b3489a10>2007-07-02 05:52:03 +0000
commit63ca8bdac66f5b91d22bff6ea5b649aea8b8f1f9 (patch)
tree7577e876dae0a2580f321f3fc9e4da5195cc0168 /MySpace/net.cpp
parent2beea6e387b2ea45634f7b11ab33ca60bb9c7bb0 (diff)
allow for multiple accounts (module name from filename - ala dll copy)
git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@240 4f64403b-2f21-0410-a795-97e2b3489a10
Diffstat (limited to 'MySpace/net.cpp')
-rw-r--r--MySpace/net.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/MySpace/net.cpp b/MySpace/net.cpp
index 812c551..998e3cf 100644
--- a/MySpace/net.cpp
+++ b/MySpace/net.cpp
@@ -8,7 +8,10 @@ void InitNetlib() {
nl_user.cbSize = sizeof(nl_user);
nl_user.szSettingsModule = MODULE;
nl_user.flags = NUF_OUTGOING | NUF_HTTPCONNS;
- nl_user.szDescriptiveName = MODULE;
+
+ char buff[512];
+ mir_snprintf(buff, 512, "%s server connection", MODULE);
+ nl_user.szDescriptiveName = buff;
hNetlibUser = (HANDLE)CallService(MS_NETLIB_REGISTERUSER, 0, (LPARAM)&nl_user);
}