From 8b3de7af5b6799b1c8ca41fe4633617a70c0894f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Tue, 26 May 2015 08:33:42 +0000 Subject: Unify Netlib initialization error message in some protocols git-svn-id: http://svn.miranda-ng.org/main/trunk@13841 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Omegle/src/proto.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'protocols/Omegle/src/proto.cpp') diff --git a/protocols/Omegle/src/proto.cpp b/protocols/Omegle/src/proto.cpp index dd4b332c1a..fa5a0a7d04 100644 --- a/protocols/Omegle/src/proto.cpp +++ b/protocols/Omegle/src/proto.cpp @@ -50,8 +50,11 @@ OmegleProto::OmegleProto(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 Omegle"),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); -- cgit v1.2.3