From 6cd788c4e50f6079b9db5ff9cea7562d3cab3419 Mon Sep 17 00:00:00 2001 From: Vladimir Glazounov Date: Wed, 28 May 2003 12:32:37 +0000 Subject: INTEGRATION: CWS fwk04 (1.5.62); FILE MERGED 2003/05/23 13:27:10 abi 1.5.62.1: #i10685# initialized variable --- ucb/source/ucp/file/filinpstr.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'ucb') 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 -- cgit