summaryrefslogtreecommitdiff
path: root/sot/source
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2005-04-18 11:16:52 +0000
committerOliver Bolte <obo@openoffice.org>2005-04-18 11:16:52 +0000
commitd3361cbf59732dedb1bb3831e35af2323bc39a8a (patch)
tree088f6bdb481be67b0386628f4b9933cd980d4474 /sot/source
parenta61449e0b19a7d8310e9b8d9e16f03bd69b0e009 (diff)
INTEGRATION: CWS fwkfinal8 (1.4.166); FILE MERGED
2005/04/05 10:03:01 mav 1.4.166.1: #i46388# ignore unused bits completely
Diffstat (limited to 'sot/source')
-rw-r--r--sot/source/sdstor/stgole.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/sot/source/sdstor/stgole.cxx b/sot/source/sdstor/stgole.cxx
index f12149683cfa..01587d3d6aa6 100644
--- a/sot/source/sdstor/stgole.cxx
+++ b/sot/source/sdstor/stgole.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: stgole.cxx,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: mba $ $Date: 2002-07-22 12:28:43 $
+ * last change: $Author: obo $ $Date: 2005-04-18 12:16:52 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -156,6 +156,8 @@ BOOL StgCompObjStream::Load()
*this >> aClsId;
INT32 nLen1 = 0;
*this >> nLen1;
+ // higher bits are ignored
+ nLen1 &= 0xFFFF;
sal_Char* p = new sal_Char[ (USHORT) nLen1 ];
if( Read( p, nLen1 ) == (ULONG) nLen1 )
{