summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-07-03 12:30:00 +0100
committerMichael Meeks <michael.meeks@novell.com>2011-07-07 12:53:40 +0100
commit3e89e510bf9974f75a81baf13dc59f6e137ec9a9 (patch)
tree51ba574ead565bbcfea1ff41aeb684e434711e86
parent30d4566c9685c091d08867adeb147a1cb2070c9e (diff)
Related: #i46388# busted ole2 wrapper
Signed-off-by: Michael Meeks <michael.meeks@novell.com>
-rw-r--r--sot/source/sdstor/stgstrms.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sot/source/sdstor/stgstrms.cxx b/sot/source/sdstor/stgstrms.cxx
index 495748aee1..79590bf948 100644
--- a/sot/source/sdstor/stgstrms.cxx
+++ b/sot/source/sdstor/stgstrms.cxx
@@ -798,7 +798,7 @@ void* StgDataStrm::GetPtr( sal_Int32 Pos, sal_Bool bForce, sal_Bool bDirty )
if( Pos2Page( Pos ) )
{
StgPage* pPg = rIo.Get( nPage, bForce );
- if( pPg )
+ if (pPg && nOffset < pPg->GetSize())
{
pPg->SetOwner( pEntry );
if( bDirty )