mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-07 05:24:46 +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,
|
CXWordsAppView::sym_send( XP_U8* aBuf, XP_U16 aLen, CommsAddrRec* aAddr,
|
||||||
void* aClosure )
|
void* aClosure )
|
||||||
{
|
{
|
||||||
|
CommsAddrRec addr;
|
||||||
XP_S16 result = -1;
|
XP_S16 result = -1;
|
||||||
CXWordsAppView* self = (CXWordsAppView*)aClosure;
|
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;
|
return result;
|
||||||
} /* sym_send */
|
} /* sym_send */
|
||||||
|
|
Loading…
Reference in a new issue