mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-03 23:04:08 +01:00
initial null addr rec is normal; deal with it
This commit is contained in:
parent
da6a79693f
commit
e7fb221892
1 changed files with 8 additions and 2 deletions
|
@ -1194,11 +1194,17 @@ CXWordsAppView::DrawGameName() const
|
|||
CXWordsAppView::sym_send( XP_U8* aBuf, XP_U16 aLen, CommsAddrRec* aAddr,
|
||||
void* aClosure )
|
||||
{
|
||||
CommsAddrRec addr;
|
||||
XP_S16 result = -1;
|
||||
CXWordsAppView* self = (CXWordsAppView*)aClosure;
|
||||
self->iSendSock->SendL( aBuf, aLen, aAddr );
|
||||
|
||||
XP_LOGF( "sym_send called with %d bytes, => %d", aLen, result );
|
||||
if ( aAddr == NULL ) {
|
||||
XP_U16 ignore;
|
||||
comms_getAddr( self->iGame.comms, &addr, &ignore );
|
||||
aAddr = &addr;
|
||||
}
|
||||
|
||||
self->iSendSock->SendL( aBuf, aLen, aAddr );
|
||||
|
||||
return result;
|
||||
} /* sym_send */
|
||||
|
|
Loading…
Reference in a new issue