From e7fb2218924f4fb9456c1a8fd638afeeb9a13ce6 Mon Sep 17 00:00:00 2001 From: ehouse Date: Tue, 1 Mar 2005 01:14:34 +0000 Subject: [PATCH] initial null addr rec is normal; deal with it --- symbian/src/xwappview.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/symbian/src/xwappview.cpp b/symbian/src/xwappview.cpp index fc8507d68..76a8c8750 100644 --- a/symbian/src/xwappview.cpp +++ b/symbian/src/xwappview.cpp @@ -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 */