summaryrefslogtreecommitdiff
path: root/unotools/source
diff options
context:
space:
mode:
authorCarsten Driesner <cd@openoffice.org>2001-10-17 04:58:58 +0000
committerCarsten Driesner <cd@openoffice.org>2001-10-17 04:58:58 +0000
commitf2d7b6eb28b5647cd68ec4fc45f949c7a82aae11 (patch)
tree844d4f60b92d89414ade17c8e8e129c96fce8263 /unotools/source
parente6949ca26b3a0bb4596cb57e1dcb900a953495ab (diff)
#85600# catch IllegalArgumentException when doing seek operation
Diffstat (limited to 'unotools/source')
-rw-r--r--unotools/source/ucbhelper/ucblockbytes.cxx11
1 files changed, 9 insertions, 2 deletions
diff --git a/unotools/source/ucbhelper/ucblockbytes.cxx b/unotools/source/ucbhelper/ucblockbytes.cxx
index c06cbc811963..63c403c8aaa3 100644
--- a/unotools/source/ucbhelper/ucblockbytes.cxx
+++ b/unotools/source/ucbhelper/ucblockbytes.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: ucblockbytes.cxx,v $
*
- * $Revision: 1.37 $
+ * $Revision: 1.38 $
*
- * last change: $Author: mba $ $Date: 2001-09-19 10:32:17 $
+ * last change: $Author: cd $ $Date: 2001-10-17 05:58:58 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -128,6 +128,9 @@
#ifndef _COM_SUN_STAR_IO_XTRUNCATE_HPP_
#include <com/sun/star/io/XTruncate.hpp>
#endif
+#ifndef _COM_SUN_STAR_LANG_ILLEGALARGUMENTEXCEPTION_HPP_
+#include <com/sun/star/lang/IllegalArgumentException.hpp>
+#endif
#include <ucbhelper/contentbroker.hxx>
#include <ucbhelper/content.hxx>
@@ -643,6 +646,10 @@ ErrCode UcbLockBytes::ReadAt ( ULONG nPos, void *pBuffer, ULONG nCount, ULONG *p
{
return ERRCODE_IO_CANTSEEK;
}
+ catch (com::sun::star::lang::IllegalArgumentException)
+ {
+ return ERRCODE_IO_CANTSEEK;
+ }
Sequence<sal_Int8> aData;
sal_Int32 nSize;