diff options
-rw-r--r-- | tools/source/stream/strmunx.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/source/stream/strmunx.cxx b/tools/source/stream/strmunx.cxx index 20b8febe19b6..c7610b440cca 100644 --- a/tools/source/stream/strmunx.cxx +++ b/tools/source/stream/strmunx.cxx @@ -373,6 +373,8 @@ sal_uInt64 SvFileStream::SeekPos(sal_uInt64 const nPos) SetError( SVSTREAM_SEEK_ERROR ); return 0L; } + if ( nPos != STREAM_SEEK_TO_END ) + return nPos; rc = osl_getFilePos( pInstanceData->rHandle, &nNewPos ); return (sal_Size) nNewPos; } |