Eric Pouech : gdi32: Break loop in MF_PlayMetaFile when META_EOF is found.
Alexandre Julliard
julliard at winehq.org
Mon Jan 7 16:25:08 CST 2008
Module: wine
Branch: master
Commit: 47a38c3631c1d54a380573cf73cd41014fa8e744
URL: http://source.winehq.org/git/wine.git/?a=commit;h=47a38c3631c1d54a380573cf73cd41014fa8e744
Author: Eric Pouech <eric.pouech at 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 );
}
More information about the wine-cvs
mailing list