diff options
Diffstat (limited to 'protocols/WhatsApp/src/proto.cpp')
-rw-r--r-- | protocols/WhatsApp/src/proto.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/protocols/WhatsApp/src/proto.cpp b/protocols/WhatsApp/src/proto.cpp index a26284fb0b..acf47543cd 100644 --- a/protocols/WhatsApp/src/proto.cpp +++ b/protocols/WhatsApp/src/proto.cpp @@ -41,8 +41,11 @@ WhatsAppProto::WhatsAppProto(const char* proto_name, const TCHAR* username) : nlu.szSettingsModule = m_szModuleName;
nlu.ptszDescriptiveName = descr;
m_hNetlibUser = (HANDLE)CallService(MS_NETLIB_REGISTERUSER, 0, (LPARAM)&nlu);
- if (m_hNetlibUser == NULL)
- MessageBox(NULL, TranslateT("Unable to get Netlib connection for WhatsApp"), m_tszUserName, MB_OK);
+ if (m_hNetlibUser == NULL) {
+ TCHAR error[200];
+ mir_sntprintf(error, SIZEOF(error), TranslateT("Unable to initialize Netlib for %s."), m_tszUserName);
+ MessageBox(NULL, error, _T("Miranda NG"), MB_OK | MB_ICONERROR);
+ }
WASocketConnection::initNetwork(m_hNetlibUser);
|