summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorRadek Doulik <rodo@novell.com>2013-02-25 12:53:56 +0100
committerRadek Doulik <rodo@novell.com>2013-02-25 12:54:21 +0100
commit199f0edc93e25ff8144f16599184049573154232 (patch)
tree42aa3d59bb14f6ff681c5c49b92d9683a8ec6929 /vcl
parentc68c99ec8cedd51d24b5c946a02b56f63df9ce44 (diff)
allow WMF's with missing EOF record
Change-Id: Ifb38336863979890f1bc3de779d82454b4a5c185
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/filter/wmf/winwmf.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/filter/wmf/winwmf.cxx b/vcl/source/filter/wmf/winwmf.cxx
index ecdf04d06abd..97a705bbc3bf 100644
--- a/vcl/source/filter/wmf/winwmf.cxx
+++ b/vcl/source/filter/wmf/winwmf.cxx
@@ -1188,7 +1188,7 @@ void WMFReader::ReadWMF()
|| pWMF->IsEof()
)
{
- if( pWMF->IsEof() )
+ if( pWMF->IsEof() && nPos != nEndPos)
pWMF->SetError( SVSTREAM_FILEFORMAT_ERROR );
break;