Marcus Meissner : gdi: Filter GETSCALINGFACTOR and SETABORTDOC proc
in metafile
Alexandre Julliard
julliard at wine.codeweavers.com
Fri Jan 6 14:49:31 CST 2006
Module: wine
Branch: refs/heads/master
Commit: b49a1de1796283cad431b5653d8eca3cf44dbd1d
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=b49a1de1796283cad431b5653d8eca3cf44dbd1d
Author: Marcus Meissner <marcus at jet.franken.de>
Date: Fri Jan 6 21:16:37 2006 +0100
gdi: Filter GETSCALINGFACTOR and SETABORTDOC proc in metafile
Escapes.
---
dlls/gdi/metafile.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/dlls/gdi/metafile.c b/dlls/gdi/metafile.c
index 2af4df5..55c8296 100644
--- a/dlls/gdi/metafile.c
+++ b/dlls/gdi/metafile.c
@@ -863,6 +863,13 @@ BOOL WINAPI PlayMetaFileRecord( HDC hdc,
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-cvs
mailing list