gdi32: Break loop in MF_PlayMetaFile when META_EOF is found.

This commit is contained in:
Eric Pouech 2008-01-04 21:13:24 +01:00 committed by Alexandre Julliard
parent 46f8b23eb7
commit 47a38c3631
1 changed files with 5 additions and 0 deletions

View File

@ -427,7 +427,12 @@ BOOL MF_PlayMetaFile( HDC hdc, METAHEADER *mh)
mr->rdSize,offset,mh->mtSize*2);
break;
}
offset += mr->rdSize * 2;
if (mr->rdFunction == META_EOF) {
TRACE("Got META_EOF so stopping\n");
break;
}
PlayMetaFileRecord( hdc, ht, mr, mh->mtNoObjects );
}