diff options
Diffstat (limited to 'ucb/source/ucp/webdav-neon/NeonInputStream.cxx')
-rw-r--r-- | ucb/source/ucp/webdav-neon/NeonInputStream.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ucb/source/ucp/webdav-neon/NeonInputStream.cxx b/ucb/source/ucp/webdav-neon/NeonInputStream.cxx index 6958ad90ea3c..3e43456a1838 100644 --- a/ucb/source/ucp/webdav-neon/NeonInputStream.cxx +++ b/ucb/source/ucp/webdav-neon/NeonInputStream.cxx @@ -117,10 +117,10 @@ void SAL_CALL NeonInputStream::seek( sal_Int64 location ) if ( location < 0 ) throw css::lang::IllegalArgumentException(); - if ( location <= mLen ) - mPos = location; - else + if ( location > mLen ) throw css::lang::IllegalArgumentException(); + + mPos = location; } sal_Int64 SAL_CALL NeonInputStream::getPosition() |