Module: wine Branch: master Commit: 47a38c3631c1d54a380573cf73cd41014fa8e744 URL: http://source.winehq.org/git/wine.git/?a=commit;h=47a38c3631c1d54a380573cf73...
Author: Eric Pouech eric.pouech@orange.fr Date: Fri Jan 4 21:13:24 2008 +0100
gdi32: Break loop in MF_PlayMetaFile when META_EOF is found.
---
dlls/gdi32/metafile.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/dlls/gdi32/metafile.c b/dlls/gdi32/metafile.c index 43ef06d..d04a03d 100644 --- a/dlls/gdi32/metafile.c +++ b/dlls/gdi32/metafile.c @@ -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 ); }