diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2004-08-02 16:32:26 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2004-08-02 16:32:26 +0000 |
commit | 6c3591dc3ae04e17a750e824f8faddc92f3aaaab (patch) | |
tree | ca0ff5619cb5e3688000cbe12a3ac883bb35bc26 /ucb | |
parent | c60cbfb60784716c631ff800fae23ee026c1caa9 (diff) |
INTEGRATION: CWS insight01 (1.13.24); FILE MERGED
2004/04/05 14:25:18 abi 1.13.24.1: #116243# setting position to zero after truncation
Diffstat (limited to 'ucb')
-rw-r--r-- | ucb/source/ucp/file/filstr.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ucb/source/ucp/file/filstr.cxx b/ucb/source/ucp/file/filstr.cxx index 12d82b19cd7e..aacb2fa83cca 100644 --- a/ucb/source/ucp/file/filstr.cxx +++ b/ucb/source/ucp/file/filstr.cxx @@ -195,7 +195,10 @@ XStream_impl::getOutputStream( ) void SAL_CALL XStream_impl::truncate(void) throw( io::IOException, uno::RuntimeException ) { - if( osl::FileBase::E_None != m_aFile.setSize(0) ) + if (osl::FileBase::E_None != m_aFile.setSize(0)) + throw io::IOException(); + + if (osl::FileBase::E_None != m_aFile.setPos(Pos_Absolut,sal_uInt64(0))) throw io::IOException(); } |