diff options
Diffstat (limited to 'protocols/FacebookRM')
-rw-r--r-- | protocols/FacebookRM/src/proto.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/protocols/FacebookRM/src/proto.cpp b/protocols/FacebookRM/src/proto.cpp index 6cee2f91a0..188df14797 100644 --- a/protocols/FacebookRM/src/proto.cpp +++ b/protocols/FacebookRM/src/proto.cpp @@ -96,8 +96,11 @@ FacebookProto::FacebookProto(const char* proto_name, const TCHAR* username) : mir_sntprintf(descr, SIZEOF(descr), TranslateT("%s server connection"), m_tszUserName); 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 Facebook"), 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); + } facy.set_handle(m_hNetlibUser); |