diff options
author | George Hazan <ghazan@miranda.im> | 2016-12-01 20:51:12 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2016-12-01 20:51:12 +0300 |
commit | 40203d30ad1a569cfea61442782393b200e9fbe3 (patch) | |
tree | 31b453500e6cc6c5bd5a7143f80ac941af5e7f71 /protocols/WhatsApp/src/proto.cpp | |
parent | 06fc3d811d71a44b92d45e1263e5fb0099a7304e (diff) |
warning fix
Diffstat (limited to 'protocols/WhatsApp/src/proto.cpp')
-rw-r--r-- | protocols/WhatsApp/src/proto.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/protocols/WhatsApp/src/proto.cpp b/protocols/WhatsApp/src/proto.cpp index 1045d73536..05954b7809 100644 --- a/protocols/WhatsApp/src/proto.cpp +++ b/protocols/WhatsApp/src/proto.cpp @@ -231,7 +231,7 @@ bool WhatsAppProto::Register(int state, const string &cc, const string &number, string idx;
DBVARIANT dbv;
- if (WASocketConnection::hNetlibUser == NULL) {
+ if (g_hNetlibUser == NULL) {
NotifyEvent(m_tszUserName, TranslateT("Network connection error."), NULL, WHATSAPP_EVENT_CLIENT);
return false;
}
@@ -261,8 +261,7 @@ bool WhatsAppProto::Register(int state, const string &cc, const string &number, nlhr.headersCount = _countof(s_registerHeaders);
nlhr.flags = NLHRF_HTTP11 | NLHRF_SSL;
- NETLIBHTTPREQUEST* pnlhr = (NETLIBHTTPREQUEST*)CallService(MS_NETLIB_HTTPTRANSACTION,
- (WPARAM)WASocketConnection::hNetlibUser, (LPARAM)&nlhr);
+ NETLIBHTTPREQUEST* pnlhr = (NETLIBHTTPREQUEST*)CallService(MS_NETLIB_HTTPTRANSACTION, (WPARAM)g_hNetlibUser, (LPARAM)&nlhr);
const wchar_t *ptszTitle = TranslateT("Registration");
if (pnlhr == NULL) {
|