Skip to content

Commit

Permalink
emf: fix another hang
Browse files Browse the repository at this point in the history
Change-Id: I971ba5f422827f3b8fcdb86c447fc48415225eca
  • Loading branch information
Caolán McNamara committed Jul 13, 2015
1 parent 7668396 commit fe20502
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Binary file not shown.
4 changes: 2 additions & 2 deletions vcl/source/filter/wmf/enhwmf.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1728,9 +1728,9 @@ bool EnhWMFReader::ReadHeader()

pWMF->ReadInt32(nRecordCount);

if (nRecordCount == 0)
if (nRecordCount <= 0)
{
SAL_WARN("vcl.emf", "EMF\t\tEMF Header object shows record counter as 0! This shouldn't "
SAL_WARN("vcl.emf", "EMF\t\tEMF Header object shows record counter as <= 0! This shouldn't "
"be possible... indicator of possible file corruption?");
return false;
}
Expand Down

0 comments on commit fe20502

Please sign in to comment.