Module: wine Branch: master Commit: 198acf7e8c023fd9a0ca713d77c297b7df61281c URL: http://source.winehq.org/git/wine.git/?a=commit;h=198acf7e8c023fd9a0ca713d77...
Author: Vincent Povirk vincent@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@codeweavers.com Signed-off-by: Alexandre Julliard julliard@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;