mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-11 08:48:06 +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 )
|
mem_stream_getSize( XWStreamCtxt* p_sctx )
|
||||||
{
|
{
|
||||||
MemStreamCtxt* stream = (MemStreamCtxt*)p_sctx;
|
MemStreamCtxt* stream = (MemStreamCtxt*)p_sctx;
|
||||||
|
XP_U16 size = stream->nBytesWritten - stream->curReadPos;
|
||||||
return stream->nBytesWritten;
|
return size;
|
||||||
} /* mem_stream_getSize */
|
} /* mem_stream_getSize */
|
||||||
|
|
||||||
static XP_PlayerAddr
|
static XP_PlayerAddr
|
||||||
|
|
Loading…
Add table
Reference in a new issue