Permalink
Browse files

fixed RECEIVE_SID_AUTH_ACCOUNTLOGONPROOF to allow newly created accou…

…nts to log on without email registration.

git-svn-id: http://ghostplusplus.googlecode.com/svn/trunk@491 a7494f72-a4b0-11dd-a887-7ffe1a420f8d
  • Loading branch information...
1 parent 8307654 commit 5d1d8f7fc44570ec71bb9f4282b896e15206c26f xXZyZXx@gmail.com committed May 9, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 ghost/bnetprotocol.cpp
View
@@ -312,9 +312,9 @@ bool CBNETProtocol :: RECEIVE_SID_AUTH_ACCOUNTLOGONPROOF( BYTEARRAY data )
if( ValidateLength( data ) && data.size( ) >= 8 )
{
- BYTEARRAY Status = BYTEARRAY( data.begin( ) + 4, data.begin( ) + 8 );
+ uint32_t Status = UTIL_ByteArrayToUInt32( BYTEARRAY( data.begin( ) + 4, data.begin( ) + 8 ), false );
- if( UTIL_ByteArrayToUInt32( Status, false ) == 0 )
+ if( Status == 0 || Status == 0xE )
return true;
}

0 comments on commit 5d1d8f7

Please sign in to comment.