summaryrefslogtreecommitdiff
path: root/protocols/Steam/src/steam_proto.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2014-06-04 11:36:59 +0000
committerAlexander Lantsev <aunsane@gmail.com>2014-06-04 11:36:59 +0000
commitb3f2dd6e7b0ee526c8272fe8ad48cbeb4f51885a (patch)
tree1389ceef90ec8882c445edd81ff74feecb5d03f1 /protocols/Steam/src/steam_proto.cpp
parent852e3bb1fa504e3f52f5a6a7a824ca3002e38b07 (diff)
Steam: removed unused code
git-svn-id: http://svn.miranda-ng.org/main/trunk@9412 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Steam/src/steam_proto.cpp')
-rw-r--r--protocols/Steam/src/steam_proto.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/protocols/Steam/src/steam_proto.cpp b/protocols/Steam/src/steam_proto.cpp
index fec169b376..2e175c8317 100644
--- a/protocols/Steam/src/steam_proto.cpp
+++ b/protocols/Steam/src/steam_proto.cpp
@@ -52,10 +52,9 @@ CSteamProto::~CSteamProto()
MCONTACT __cdecl CSteamProto::AddToList(int flags, PROTOSEARCHRESULT* psr)
{
MCONTACT hContact = NULL;
-
+ ptrA steamId(mir_u2a(psr->id));
if (psr->cbSize == sizeof(PROTOSEARCHRESULT))
{
- ptrA steamId(mir_u2a(psr->id));
if (!FindContact(steamId))
{
//hContact = AddContact(steamId, true);
@@ -71,7 +70,7 @@ MCONTACT __cdecl CSteamProto::AddToList(int flags, PROTOSEARCHRESULT* psr)
else if (psr->cbSize == sizeof(STEAM_SEARCH_RESULT))
{
STEAM_SEARCH_RESULT *ssr = (STEAM_SEARCH_RESULT*)psr;
- hContact = AddContact(ssr->contact->GetSteamId(), true);
+ hContact = AddContact(steamId, true);
UpdateContact(hContact, ssr->data);
}