X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=platform%2Fwin32%2Ffunctions%2F_PDCLIB%2F_PDCLIB_flushbuffer.c;h=d2cb60c1e9917d15711f0255c625ed9de214b610;hb=8cd8394548bffe8605320cdce642b49a135d4485;hp=82e36a0217b11190e02158a0af8d3338baf3dd3c;hpb=5fd032eae66fba700cb9927840222b068c62361e;p=pdclib 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;