diff options
author | Radek Doulik <rodo@novell.com> | 2012-03-08 13:57:33 +0100 |
---|---|---|
committer | Radek Doulik <rodo@novell.com> | 2012-03-08 14:03:25 +0100 |
commit | 47462311eeeac0c9e560e0bb77a3c2c623362b83 (patch) | |
tree | d7cb548f474fba5c5bdeffc8529168d5f6ddeb67 /svtools | |
parent | c0db5469d9bb289075914e60ced856698a6ae249 (diff) |
added one more check to be more safe to identify (in)valid metafiles
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/filter/wmf/winwmf.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svtools/source/filter/wmf/winwmf.cxx b/svtools/source/filter/wmf/winwmf.cxx index a9c29133d786..e52d08e9de0d 100644 --- a/svtools/source/filter/wmf/winwmf.cxx +++ b/svtools/source/filter/wmf/winwmf.cxx @@ -1101,7 +1101,7 @@ sal_Bool WMFReader::ReadHeader() { sal_uInt16 aNextWord(0); *pWMF >> aNextWord; - if (aNextWord != 0x09) + if (nMetaKey == 0x10000 && aNextWord != 0x09) { pWMF->SetError( SVSTREAM_FILEFORMAT_ERROR ); return false; |