mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-07 05:24:46 +01:00
make result -1 if will otherwise trip asserts.
This commit is contained in:
parent
c05d8c43d2
commit
713d2e5634
1 changed files with 6 additions and 0 deletions
|
@ -90,6 +90,12 @@ and_xport_send( const XP_U8* buf, XP_U16 len, const XP_UCHAR* msgNo,
|
|||
jbytes, jMsgNo, jaddr, jConType, gameID );
|
||||
deleteLocalRefs( env, jaddr, jbytes, jMsgNo, jConType, DELETE_NO_REF );
|
||||
}
|
||||
|
||||
if ( result < len ) {
|
||||
XP_LOGF( "%s(): changing result %d to -1", __func__, result );
|
||||
result = -1; /* signal failure. Not sure where 0's coming from */
|
||||
}
|
||||
|
||||
LOG_RETURNF( "%d", result );
|
||||
return result;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue