[1/5] gdiplus: Skip the EMR_HEADER record when looking for the EMF+ header.

Vincent Povirk madewokherd at gmail.com
Fri Oct 30 15:05:55 CDT 2015


-------------- next part --------------
From 2f3fa864acd8efebd26eec54ffc7efa43db8268f Mon Sep 17 00:00:00 2001
From: Vincent Povirk <vincent at codeweavers.com>
Date: Thu, 29 Oct 2015 15:39:41 -0500
Subject: [PATCH 1/5] gdiplus: Skip the EMR_HEADER record when looking for the
 EMF+ header.

Signed-off-by: Vincent Povirk <vincent at codeweavers.com>
---
 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;
 
-- 
2.1.4



More information about the wine-patches mailing list