summaryrefslogtreecommitdiff
path: root/sot
diff options
context:
space:
mode:
authorMikhail Voitenko <mav@openoffice.org>2002-09-25 09:43:29 +0000
committerMikhail Voitenko <mav@openoffice.org>2002-09-25 09:43:29 +0000
commit514aa3fedf82567ea970ed8283483240626cef0f (patch)
tree5e7a7329d2459326503b8020ee8ba1dd79e2df39 /sot
parent32b80abdc7d1deffa5cafe1fbf09262640751644 (diff)
#92926# handle unpossibility of storage creation
Diffstat (limited to 'sot')
-rw-r--r--sot/source/sdstor/ucbstorage.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/sot/source/sdstor/ucbstorage.cxx b/sot/source/sdstor/ucbstorage.cxx
index 3ba87508d3d1..c802b51811af 100644
--- a/sot/source/sdstor/ucbstorage.cxx
+++ b/sot/source/sdstor/ucbstorage.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: ucbstorage.cxx,v $
*
- * $Revision: 1.72 $
+ * $Revision: 1.73 $
*
- * last change: $Author: mba $ $Date: 2002-09-12 15:09:09 $
+ * last change: $Author: mav $ $Date: 2002-09-25 10:43:29 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -1816,6 +1816,7 @@ void UCBStorage_Impl::Init()
}
else
{
+ ReadContent();
// get the manifest information from the package
Any aAny = m_pContent->getPropertyValue( ::rtl::OUString::createFromAscii( "MediaType" ) );
rtl::OUString aTmp;
@@ -1958,8 +1959,8 @@ void UCBStorage_Impl::ReadContent()
}
catch ( SQLException& )
{
- // any other error - not specified
- SetError( ERRCODE_IO_GENERAL );
+ // means that the file can be broken
+ SetError( ERRCODE_IO_WRONGFORMAT );
}
catch ( Exception& )
{