diff options
author | George Hazan <george.hazan@gmail.com> | 2015-06-16 09:52:23 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-06-16 09:52:23 +0000 |
commit | 0a720dfc2ba0b1b2bfe6a23ea3639aea2ddff013 (patch) | |
tree | 9ae05c8cf1724a2c69ee5c48d8358d58ae730a25 /protocols/Steam/src/steam_proto.cpp | |
parent | cda93cac89134d0ac7097dd054c02256abf0c50f (diff) |
crash fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@14190 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Steam/src/steam_proto.cpp')
-rw-r--r-- | protocols/Steam/src/steam_proto.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/protocols/Steam/src/steam_proto.cpp b/protocols/Steam/src/steam_proto.cpp index 82f398ecb8..f613f339a2 100644 --- a/protocols/Steam/src/steam_proto.cpp +++ b/protocols/Steam/src/steam_proto.cpp @@ -52,18 +52,33 @@ CSteamProto::CSteamProto(const char* protoName, const TCHAR* userName) : // services CreateServiceFunction(MODULE"/MenuChoose", CSteamProto::MenuChooseService); + // avatar API CreateProtoService(PS_GETAVATARINFO, &CSteamProto::GetAvatarInfo); CreateProtoService(PS_GETAVATARCAPS, &CSteamProto::GetAvatarCaps); CreateProtoService(PS_GETMYAVATAR, &CSteamProto::GetMyAvatar); + // custom status API CreateProtoService(PS_GETCUSTOMSTATUSEX, &CSteamProto::OnGetXStatusEx); CreateProtoService(PS_GETCUSTOMSTATUSICON, &CSteamProto::OnGetXStatusIcon); CreateProtoService(PS_GETADVANCEDSTATUSICON, &CSteamProto::OnRequestAdvStatusIconIdx); + + // netlib support + 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); } CSteamProto::~CSteamProto() { + delete requestQueue; } MCONTACT CSteamProto::AddToList(int, PROTOSEARCHRESULT* psr) |