Vincent Povirk : gdiplus: Skip the EMR_HEADER record when looking for the EMF+ header.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Nov 2 09:47:14 CST 2015
Module: wine
Branch: master
Commit: 198acf7e8c023fd9a0ca713d77c297b7df61281c
URL: http://source.winehq.org/git/wine.git/?a=commit;h=198acf7e8c023fd9a0ca713d77c297b7df61281c
Author: Vincent Povirk <vincent at codeweavers.com>
Date: Thu Oct 29 15:39:41 2015 -0500
gdiplus: Skip the EMR_HEADER record when looking for the EMF+ header.
Signed-off-by: Vincent Povirk <vincent at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/gdiplus/metafile.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/dlls/gdiplus/metafile.c b/dlls/gdiplus/metafile.c
index edbbb34..c46be76 100644
--- a/dlls/gdiplus/metafile.c
+++ b/dlls/gdiplus/metafile.c
@@ -908,6 +908,8 @@ static int CALLBACK get_metafile_type_proc(HDC hDC, HANDLETABLE *lpHTable, const
else
*result = MetafileTypeEmf;
}
+ else if (lpEMFR->iType == EMR_HEADER)
+ return TRUE;
else
*result = MetafileTypeEmf;
More information about the wine-cvs
mailing list