summaryrefslogtreecommitdiffstats
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
parentCWS gnumake3: merge minibranches (diff)
parentmasterfix: #i10000# #i116562# kde patch (diff)
downloadcore-5ede6609549b11eb205e080341438bed5f9858e0.tar.gz
core-5ede6609549b11eb205e080341438bed5f9858e0.zip
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;
}