summaryrefslogtreecommitdiff
path: root/unotools
diff options
context:
space:
mode:
authorMathias Bauer <mba@openoffice.org>2011-01-25 18:35:57 +0100
committerMathias Bauer <mba@openoffice.org>2011-01-25 18:35:57 +0100
commit5ede6609549b11eb205e080341438bed5f9858e0 (patch)
tree33be88516ed938aba3b7d9878ef088ee467efa68 /unotools
parent0ab2ece0b9e074ed63d793ce8e487a07307b12e5 (diff)
parentffd600e777970df0908125da66b280e1b00dbec9 (diff)
CWS gnumake3: resync to m98
Diffstat (limited to 'unotools')
-rw-r--r--unotools/source/ucbhelper/ucblockbytes.cxx11
1 files changed, 10 insertions, 1 deletions
diff --git a/unotools/source/ucbhelper/ucblockbytes.cxx b/unotools/source/ucbhelper/ucblockbytes.cxx
index f21855d20aed..9f4c39b397e1 100644
--- a/unotools/source/ucbhelper/ucblockbytes.cxx
+++ b/unotools/source/ucbhelper/ucblockbytes.cxx
@@ -1538,7 +1538,16 @@ ErrCode UcbLockBytes::Flush() const
Reference <XOutputStream > xOutputStream = getOutputStream_Impl();
if ( !xOutputStream.is() )
return ERRCODE_IO_CANTWRITE;
- xOutputStream->flush();
+
+ try
+ {
+ xOutputStream->flush();
+ }
+ catch( Exception )
+ {
+ return ERRCODE_IO_CANTWRITE;
+ }
+
return ERRCODE_NONE;
}