X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=platform%2Fwin32%2Ffunctions%2F_PDCLIB%2F_PDCLIB_flushbuffer.c;h=d2cb60c1e9917d15711f0255c625ed9de214b610;hp=82e36a0217b11190e02158a0af8d3338baf3dd3c;hb=04ff9a4a124eaa87d5d26d90077fb4ed15f3277f;hpb=9b38723dad57f9eb49abdb2a6cde699c658c83fc diff --git a/platform/win32/functions/_PDCLIB/_PDCLIB_flushbuffer.c b/platform/win32/functions/_PDCLIB/_PDCLIB_flushbuffer.c index 82e36a0..d2cb60c 100644 --- a/platform/win32/functions/_PDCLIB/_PDCLIB_flushbuffer.c +++ b/platform/win32/functions/_PDCLIB/_PDCLIB_flushbuffer.c @@ -33,6 +33,7 @@ int _PDCLIB_flushbuffer( struct _PDCLIB_file_t * stream ) BOOL res = WriteFile( stream->handle, stream->buffer + written, toWrite, &justWrote, NULL); written += justWrote; + stream->pos.offset += justWrote; if(!res) { stream->status |=_PDCLIB_ERRORFLAG;