From 1830b4f2e324090962a993315ce76752d24d4088 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 27 Aug 2015 13:58:48 +0100 Subject: check seek for success Change-Id: I02420ffb3af009d08ce54a0932e2c7a287703a72 --- sd/source/filter/ppt/propread.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'sd/source') diff --git a/sd/source/filter/ppt/propread.cxx b/sd/source/filter/ppt/propread.cxx index f8804fd8f601..86195be46364 100644 --- a/sd/source/filter/ppt/propread.cxx +++ b/sd/source/filter/ppt/propread.cxx @@ -419,7 +419,11 @@ void Section::Read( SotStorageStream *pStrm ) if ( nPropSize ) { if ( ( nVectorCount - i ) > 1 ) - pStrm->Seek( nPropOfs + nSecOfs + nPropSize ); + { + nOffset = nPropOfs + nSecOfs + nPropSize; + if (nOffset != pStrm->Seek(nOffset)) + break; + } } else break; -- cgit