diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-07-03 12:30:00 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-07-03 12:30:00 +0100 |
commit | d8ba18651cdca6037ee187b586d3c309a9db3528 (patch) | |
tree | 7119d7bf6066a4970fc22e306e140449c9a695f9 /sot | |
parent | 23a90a9923ea81865de56010f962d190958c57d3 (diff) |
Related: #i46388# busted ole2 wrapper
Diffstat (limited to 'sot')
-rw-r--r-- | sot/source/sdstor/stgstrms.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sot/source/sdstor/stgstrms.cxx b/sot/source/sdstor/stgstrms.cxx index fe40be155b9e..48e8de3ede6d 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 ) |