diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2014-04-16 21:34:54 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2014-04-16 21:34:54 +0000 |
commit | 609b81615bd8a2726da369574ec298f6fe853886 (patch) | |
tree | e4dd2acbda20b314ee690223903e45a54e6a547e /protocols/Steam/src/steam_proto.cpp | |
parent | be100a792632718fea4a7293db1999ed13cee37a (diff) |
Steam: work commit
- fixed long connecting in one case
- one more peace of contact management
- minor changes
git-svn-id: http://svn.miranda-ng.org/main/trunk@8987 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Steam/src/steam_proto.cpp')
-rw-r--r-- | protocols/Steam/src/steam_proto.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/protocols/Steam/src/steam_proto.cpp b/protocols/Steam/src/steam_proto.cpp index 771d6884b6..8040a1b226 100644 --- a/protocols/Steam/src/steam_proto.cpp +++ b/protocols/Steam/src/steam_proto.cpp @@ -77,7 +77,17 @@ int __cdecl CSteamProto::Authorize(HANDLE hDbEvent) int __cdecl CSteamProto::AuthDeny(HANDLE hDbEvent, const TCHAR* szReason)
{
- return 0;
+ if (IsOnline() && hDbEvent)
+ {
+ MCONTACT hContact = GetContactFromAuthEvent(hDbEvent);
+ if (hContact == INVALID_CONTACT_ID)
+ return 1;
+
+ ForkThread(&CSteamProto::AuthDenyThread, (void*)hContact);
+ // todo: how to return real status?
+ return 0;
+ }
+ return 1;
}
int __cdecl CSteamProto::AuthRecv(MCONTACT hContact, PROTORECVEVENT* pre)
|