diff options
author | Carsten Driesner <cd@openoffice.org> | 2011-01-21 17:18:37 +0100 |
---|---|---|
committer | Carsten Driesner <cd@openoffice.org> | 2011-01-21 17:18:37 +0100 |
commit | 2025ad7dd6f3929fe52bf0329ba81779d121a8ab (patch) | |
tree | c1d5fb09dc3c321ed5b5c2447f7f31dd5b9102a5 /unotools | |
parent | 1ca84c4108c009dc2b5a0cf0face9ec5439f6686 (diff) | |
parent | 7640d6a69f69172127221455b5bc5ae644f595ca (diff) |
removetooltypes01: Rebase to DEV300m98
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 74e1872fb528..71640c6e5b08 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; } |