diff options
Diffstat (limited to 'cosv')
-rw-r--r-- | cosv/source/storage/file.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/cosv/source/storage/file.cxx b/cosv/source/storage/file.cxx index 16665d75e64e..0618fae227ec 100644 --- a/cosv/source/storage/file.cxx +++ b/cosv/source/storage/file.cxx @@ -104,9 +104,8 @@ File::do_write( const void * i_pSrc, if ( eLastIO == io_write ) ::fseek( pStream, 0, SEEK_CUR ); - uintt ret = position(); - ::fwrite( i_pSrc, 1, i_nNrofBytes, pStream ); - ret = position() - ret; + + uintt ret = ::fwrite( i_pSrc, 1, i_nNrofBytes, pStream ); eLastIO = io_write; return ret; |