summaryrefslogtreecommitdiff
path: root/remotebridges
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2004-04-13 11:17:20 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2004-04-13 11:17:20 +0000
commitcedb8ea8a6905c2e481558d3062b459eab855fe4 (patch)
tree2687f4b179e2740bcaac26af87fbfe457e15a66e /remotebridges
parent7c95e249723435965da12a15234dcb1156eaf02e (diff)
INTEGRATION: CWS unopkg1 (1.3.10); FILE MERGED
2004/03/12 13:36:59 dbo 1.3.10.1: #i22343# catching ::std::bad_alloc
Diffstat (limited to 'remotebridges')
-rw-r--r--remotebridges/source/bridge/bridge_connection.cxx16
1 files changed, 6 insertions, 10 deletions
diff --git a/remotebridges/source/bridge/bridge_connection.cxx b/remotebridges/source/bridge/bridge_connection.cxx
index c331a78976d2..8de7871d7237 100644
--- a/remotebridges/source/bridge/bridge_connection.cxx
+++ b/remotebridges/source/bridge/bridge_connection.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: bridge_connection.cxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: vg $ $Date: 2003-12-17 17:45:57 $
+ * last change: $Author: hr $ $Date: 2004-04-13 12:17:20 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -109,13 +109,6 @@ namespace remotebridges_bridge
{
// TODO possible optimization : give
::rtl::ByteSequence seq( nSize , ::rtl::BYTESEQ_NODEFAULT );
-
- // #i20906#: Handle out-of-memory condition.
- // Clean solution will be supplied with #i22343# (ByteSequence
- // ctor will throw ::std::bad_alloc())
- if ( seq.getHandle() == 0 )
- return 0;
-
sal_Int32 nRead = m->m_r->read( *(Sequence<sal_Int8>*)&seq , nSize );
memcpy( pDest , seq.getConstArray() , nRead );
return nRead;
@@ -124,7 +117,10 @@ namespace remotebridges_bridge
{
return 0;
}
-
+ catch (::std::bad_alloc &)
+ {
+ return 0;
+ }
}
sal_Int32 OConnectionWrapper::thisWrite( remote_Connection *p ,