From 0a720dfc2ba0b1b2bfe6a23ea3639aea2ddff013 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 16 Jun 2015 09:52:23 +0000 Subject: crash fix git-svn-id: http://svn.miranda-ng.org/main/trunk@14190 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Steam/src/steam_events.cpp | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'protocols/Steam/src/steam_events.cpp') diff --git a/protocols/Steam/src/steam_events.cpp b/protocols/Steam/src/steam_events.cpp index cbaf2302ae..2e91508915 100644 --- a/protocols/Steam/src/steam_events.cpp +++ b/protocols/Steam/src/steam_events.cpp @@ -5,29 +5,14 @@ int CSteamProto::OnModulesLoaded(WPARAM, LPARAM) HookProtoEvent(ME_OPT_INITIALISE, &CSteamProto::OnOptionsInit); HookProtoEvent(ME_IDLE_CHANGED, &CSteamProto::OnIdleChanged); - TCHAR name[128]; - mir_sntprintf(name, SIZEOF(name), TranslateT("%s connection"), m_tszUserName); - - NETLIBUSER nlu = { sizeof(nlu) }; - nlu.flags = NUF_INCOMING | NUF_OUTGOING | NUF_HTTPCONNS | NUF_TCHAR; - nlu.ptszDescriptiveName = name; - nlu.szSettingsModule = m_szModuleName; - m_hNetlibUser = (HANDLE)CallService(MS_NETLIB_REGISTERUSER, 0, (LPARAM)&nlu); - - requestQueue = new RequestQueue(m_hNetlibUser); - HookEvent(ME_CLIST_PREBUILDCONTACTMENU, &CSteamProto::PrebuildContactMenu); - return 0; } int CSteamProto::OnPreShutdown(WPARAM, LPARAM) { - delete requestQueue; - Netlib_CloseHandle(this->m_hNetlibUser); this->m_hNetlibUser = NULL; - return 0; } -- cgit v1.2.3