diff options
-rw-r--r-- | cosv/source/storage/file.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cosv/source/storage/file.cxx b/cosv/source/storage/file.cxx index cd760f5ae60a..1cfab6e4d46a 100644 --- a/cosv/source/storage/file.cxx +++ b/cosv/source/storage/file.cxx @@ -122,7 +122,10 @@ File::do_read( void * out_pDest, if ( eLastIO == io_write ) ::fseek( pStream, 0, SEEK_CUR ); uintt ret = position(); - ::fread( out_pDest, 1, i_nNrofBytes, pStream ); + int iRet= ::fread( out_pDest, 1, i_nNrofBytes, pStream ); + if ( iRet < 0 ) { + fprintf(stderr, "warning: read failed in %s line %d \n", __FILE__, __LINE__); + } ret = position() - ret; eLastIO = io_read; |