From c992cb2fdc11f1cac4bc5cbce26e8e2bb3b57da0 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 26 Jun 2012 16:50:14 +0000 Subject: - microkernel addded; - version bumped to 0.92.2 git-svn-id: http://svn.miranda-ng.org/main/trunk@641 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Gadu-Gadu/gg.c | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'protocols/Gadu-Gadu') diff --git a/protocols/Gadu-Gadu/gg.c b/protocols/Gadu-Gadu/gg.c index 8e573ba6ce..6cb5abf554 100644 --- a/protocols/Gadu-Gadu/gg.c +++ b/protocols/Gadu-Gadu/gg.c @@ -452,6 +452,7 @@ static GGPROTO *gg_proto_init(const char* pszProtoName, const TCHAR* tszUserName DWORD dwVersion; GGPROTO *gg = (GGPROTO *)mir_alloc(sizeof(GGPROTO)); char szVer[MAX_PATH]; + char name[128]; NETLIBUSER nlu = { 0 }; ZeroMemory(gg, sizeof(GGPROTO)); @@ -486,16 +487,9 @@ static GGPROTO *gg_proto_init(const char* pszProtoName, const TCHAR* tszUserName nlu.cbSize = sizeof(nlu); nlu.flags = NUF_OUTGOING | NUF_INCOMING | NUF_HTTPCONNS; nlu.szSettingsModule = gg->proto.m_szModuleName; - if (gg->unicode_core) { - WCHAR name[128]; - _snwprintf(name, SIZEOF(name), TranslateW(L"%s connection"), gg->proto.m_tszUserName); - nlu.ptszDescriptiveName = (TCHAR *)name; - nlu.flags |= NUF_UNICODE; - } else { - char name[128]; - mir_snprintf(name, SIZEOF(name), Translate("%s connection"), gg->proto.m_tszUserName); - nlu.ptszDescriptiveName = name; - } + mir_snprintf(name, SIZEOF(name), Translate("%s connection"), gg->proto.m_tszUserName); + nlu.ptszDescriptiveName = name; + gg->netlib = (HANDLE)CallService(MS_NETLIB_REGISTERUSER, 0, (LPARAM)&nlu); // Register services -- cgit v1.2.3