Commit 47a38c36 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

gdi32: Break loop in MF_PlayMetaFile when META_EOF is found.

parent 46f8b23e
......@@ -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 );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment