diff options
author | Mathias Bauer <mba@openoffice.org> | 2011-01-25 18:35:57 +0100 |
---|---|---|
committer | Mathias Bauer <mba@openoffice.org> | 2011-01-25 18:35:57 +0100 |
commit | 5ede6609549b11eb205e080341438bed5f9858e0 (patch) | |
tree | 33be88516ed938aba3b7d9878ef088ee467efa68 /unotools | |
parent | CWS gnumake3: merge minibranches (diff) | |
parent | masterfix: #i10000# #i116562# kde patch (diff) | |
download | core-5ede6609549b11eb205e080341438bed5f9858e0.tar.gz core-5ede6609549b11eb205e080341438bed5f9858e0.zip |
CWS gnumake3: resync to m98
Diffstat (limited to 'unotools')
-rw-r--r-- | unotools/source/ucbhelper/ucblockbytes.cxx | 11 |
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; } |