summaryrefslogtreecommitdiff
path: root/tools/source/stream
diff options
context:
space:
mode:
Diffstat (limited to 'tools/source/stream')
-rw-r--r--tools/source/stream/stream.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/source/stream/stream.cxx b/tools/source/stream/stream.cxx
index a7021d2b22aa..f807a56cf52f 100644
--- a/tools/source/stream/stream.cxx
+++ b/tools/source/stream/stream.cxx
@@ -1411,7 +1411,7 @@ sal_uInt64 SvStream::Seek(sal_uInt64 const nFilePos)
bool checkSeek(SvStream &rSt, sal_uInt64 nOffset)
{
- const sal_uInt64 nMaxSeek(rSt.Tell() + rSt.remainingSize());
+ const sal_uInt64 nMaxSeek = rSt.TellEnd();
return (nOffset <= nMaxSeek && rSt.Seek(nOffset) == nOffset);
}