summaryrefslogtreecommitdiff
path: root/cosv
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2009-08-26 14:24:27 +0000
committerVladimir Glazounov <vg@openoffice.org>2009-08-26 14:24:27 +0000
commit0080c25d360418f6a4b8574d255f64050a0b98c9 (patch)
tree0350d2388594985581ec8e72da83b290e2508b09 /cosv
parent6743faf87272d794062cb78c46657f1b5351f4b0 (diff)
CWS-TOOLING: integrate CWS mh132
2009-08-06 12:20:52 +0200 mh r274712 : corrected error handling 2009-08-05 13:41:20 +0200 mh r274661 : #i93040# NetBSD compile issue 2009-08-05 13:40:32 +0200 mh r274660 : #i93040# NetBSD compile issue 2009-08-05 13:38:46 +0200 mh r274659 : #i93040# NetBSD compile issue 2009-08-05 13:29:15 +0200 mh r274658 : #i95193# increase includes limit 2009-08-05 13:22:07 +0200 mh r274657 : #i96811# honor return values of read calls 2009-08-05 13:16:47 +0200 mh r274654 : #i96802# honor return values of write calls 2009-08-05 13:07:06 +0200 mh r274653 : #i99835# do DestroyData 2009-08-05 13:01:42 +0200 mh r274651 : #i68557#: allow more dpi resolutions in scanner dialogue 2009-07-24 14:46:04 +0200 mh r274307 : #i103770# missing fclose added
Diffstat (limited to 'cosv')
-rw-r--r--cosv/source/storage/file.cxx5
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;