summaryrefslogtreecommitdiff
path: root/protocols/Discord/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-01-13 00:01:59 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-01-13 00:01:59 +0300
commite145db68fb5b7d0682a4b2be0174cebfe47dd74e (patch)
treec8f9edc907876d236eb16bc8ca8b592accb9846f /protocols/Discord/src
parent3cb3883908e3168e5f955be3143771721614307a (diff)
a bit less netlib services
Diffstat (limited to 'protocols/Discord/src')
-rw-r--r--protocols/Discord/src/gateway.cpp2
-rw-r--r--protocols/Discord/src/proto.h5
2 files changed, 3 insertions, 4 deletions
diff --git a/protocols/Discord/src/gateway.cpp b/protocols/Discord/src/gateway.cpp
index 7454383878..d17ccf4952 100644
--- a/protocols/Discord/src/gateway.cpp
+++ b/protocols/Discord/src/gateway.cpp
@@ -102,7 +102,7 @@ void CDiscordProto::GatewayThreadWorker()
}
else conn.wPort = 443;
- m_hGatewayConnection = (HANDLE)CallService(MS_NETLIB_OPENCONNECTION, (WPARAM)m_hGatewayNetlibUser, (LPARAM)&conn);
+ m_hGatewayConnection = Netlib_OpenConnection(m_hGatewayNetlibUser, &conn);
if (m_hGatewayConnection == NULL) {
debugLogA("Gateway connection failed to connect to %s:%d, exiting", m_szGateway.c_str(), conn.wPort);
return;
diff --git a/protocols/Discord/src/proto.h b/protocols/Discord/src/proto.h
index 15a6a9eeeb..22fe036f5b 100644
--- a/protocols/Discord/src/proto.h
+++ b/protocols/Discord/src/proto.h
@@ -145,9 +145,8 @@ class CDiscordProto : public PROTO<CDiscordProto>
m_szGateway, // gateway url
m_szGatewaySessionId; // current session id
- HANDLE
- m_hGatewayNetlibUser, // the separate netlib user handle for gateways
- m_hGatewayConnection; // gateway connection
+ HNETLIBUSER m_hGatewayNetlibUser; // the separate netlib user handle for gateways
+ HANDLE m_hGatewayConnection; // gateway connection
void __cdecl GatewayThread(void*);
void CDiscordProto::GatewayThreadWorker(void);