Do not enumerate the META_EOF record.

This commit is contained in:
Huw D M Davies 2002-04-03 22:46:32 +00:00 committed by Alexandre Julliard
parent f641cf4724
commit 43ff7d2d85
1 changed files with 4 additions and 0 deletions

View File

@ -722,6 +722,10 @@ BOOL WINAPI EnumMetaFile(
while (offset < (mh->mtSize * 2))
{
mr = (METARECORD *)((char *)mh + offset);
if(mr->rdFunction == META_EOF) {
TRACE("Got META_EOF so stopping\n");
break;
}
TRACE("Calling EnumFunc with record type %x\n",
mr->rdFunction);
if (!lpEnumFunc( hdc, ht, mr, mh->mtNoObjects, (LONG)lpData ))