summaryrefslogtreecommitdiff
path: root/vcl/source/filter/jpeg/JpegReader.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/filter/jpeg/JpegReader.cxx')
-rw-r--r--vcl/source/filter/jpeg/JpegReader.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/filter/jpeg/JpegReader.cxx b/vcl/source/filter/jpeg/JpegReader.cxx
index 3f3487633c4f..8959e4e8bd99 100644
--- a/vcl/source/filter/jpeg/JpegReader.cxx
+++ b/vcl/source/filter/jpeg/JpegReader.cxx
@@ -72,7 +72,7 @@ long StreamRead( SvStream* pStream, void* pBuffer, long nBufferSize )
{
long nInitialPosition = pStream->Tell();
- nRead = (long) pStream->Read( pBuffer, nBufferSize );
+ nRead = static_cast<long>(pStream->ReadBytes(pBuffer, nBufferSize));
if( pStream->GetError() == ERRCODE_IO_PENDING )
{