diff options
Diffstat (limited to 'tools/source/stream/strmwnt.cxx')
-rw-r--r-- | tools/source/stream/strmwnt.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/source/stream/strmwnt.cxx b/tools/source/stream/strmwnt.cxx index d5f519fcef05..ad4f1336339b 100644 --- a/tools/source/stream/strmwnt.cxx +++ b/tools/source/stream/strmwnt.cxx @@ -162,6 +162,8 @@ sal_Size SvFileStream::PutData( const void* pData, sal_Size nSize ) sal_uInt64 SvFileStream::SeekPos(sal_uInt64 const nPos) { + // check if a truncated STREAM_SEEK_TO_END was passed + assert(nPos != (sal_uInt64)(sal_uInt32)STREAM_SEEK_TO_END); DWORD nNewPos = 0; if( IsOpen() ) { |