diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2003-05-28 12:32:37 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2003-05-28 12:32:37 +0000 |
commit | 6cd788c4e50f6079b9db5ff9cea7562d3cab3419 (patch) | |
tree | bd4bfe8de43a43b4df0cd62c41e0b3d75739fa39 /ucb | |
parent | 0b636f699d8adaa89c15be206b1a96f200a88d7e (diff) |
INTEGRATION: CWS fwk04 (1.5.62); FILE MERGED
2003/05/23 13:27:10 abi 1.5.62.1: #i10685# initialized variable
Diffstat (limited to 'ucb')
-rw-r--r-- | ucb/source/ucp/file/filinpstr.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ucb/source/ucp/file/filinpstr.cxx b/ucb/source/ucp/file/filinpstr.cxx index 107f5605f14c..c0b8aa48b952 100644 --- a/ucb/source/ucp/file/filinpstr.cxx +++ b/ucb/source/ucp/file/filinpstr.cxx @@ -161,8 +161,10 @@ XInputStream_impl::readBytes( //TODO! translate memory exhaustion (if it were detectable...) into // io::BufferSizeExceededException - sal_uInt64 nrc; - m_aFile.read( aData.getArray(),sal_uInt64(nBytesToRead),nrc ); + sal_uInt64 nrc(0); + if(m_aFile.read( aData.getArray(),sal_uInt64(nBytesToRead),nrc ) + != osl::FileBase::E_None) + throw io::IOException(); // Shrink aData in case we read less than nBytesToRead (XInputStream // documentation does not tell whether this is required, and I do not know |