summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--svl/source/misc/strmadpt.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/svl/source/misc/strmadpt.cxx b/svl/source/misc/strmadpt.cxx
index 03beb02370b2..a55a0faa683d 100644
--- a/svl/source/misc/strmadpt.cxx
+++ b/svl/source/misc/strmadpt.cxx
@@ -328,8 +328,7 @@ SvLockBytesInputStream::readSomeBytes(uno::Sequence< sal_Int8 > & rData,
{
nError = m_xLockBytes->ReadAt(m_nPosition,
rData.getArray(),
- nMaxBytesToRead < 0 ?
- 0 : nMaxBytesToRead,
+ nMaxBytesToRead,
&nCount);
if (nError != ERRCODE_NONE && nError != ERRCODE_IO_PENDING)
throw io::IOException();