PATCH: metafile / escape ... next try

Marcus Meissner marcus at jet.franken.de
Fri Jan 6 08:07:14 CST 2006


Hi,

This fixes both a bug #4244 and the wmf problem (in a minimal way).

Ciao, Marcus

Changelog:
	filter GETSCALINGFACTOR and SETABORTDOC proc in
	metafile Escapes.

Index: dlls/gdi/metafile.c
===================================================================
RCS file: /home/wine/wine/dlls/gdi/metafile.c,v
retrieving revision 1.11
diff -u -r1.11 metafile.c
--- dlls/gdi/metafile.c	3 Jan 2006 12:43:52 -0000	1.11
+++ dlls/gdi/metafile.c	6 Jan 2006 14:04:29 -0000
@@ -863,6 +863,13 @@
         break;
 
     case META_ESCAPE:
+        switch (mr->rdParm[0]) {
+        case GETSCALINGFACTOR: /* get function ... would just NULL dereference */
+             return FALSE;
+        case SETABORTPROC:
+             FIXME("Filtering Escape(SETABORTPROC), possible virus?\n");
+             return FALSE;
+        }
         Escape(hdc, mr->rdParm[0], mr->rdParm[1], (LPCSTR)&mr->rdParm[2], NULL);
         break;
 



More information about the wine-patches mailing list