mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-05 20:45:49 +01:00
make getSize return diff between what's been written and what's already
been read.
This commit is contained in:
parent
a605fd4d49
commit
9d541a7d91
1 changed files with 2 additions and 2 deletions
|
@ -317,8 +317,8 @@ static XP_U16
|
|||
mem_stream_getSize( XWStreamCtxt* p_sctx )
|
||||
{
|
||||
MemStreamCtxt* stream = (MemStreamCtxt*)p_sctx;
|
||||
|
||||
return stream->nBytesWritten;
|
||||
XP_U16 size = stream->nBytesWritten - stream->curReadPos;
|
||||
return size;
|
||||
} /* mem_stream_getSize */
|
||||
|
||||
static XP_PlayerAddr
|
||||
|
|
Loading…
Add table
Reference in a new issue