gdi32: Properly restore the DC in MF_PlayMetaFile. (RESEND)

Gerald Pfeifer gerald at pfeifer.com
Mon May 24 14:24:05 CDT 2010


Any reason why this hasn't been applied yet?  It's the updated/fixed
patch per Alexandre's guidance.

Gerald

---------- Forwarded message ----------
From: Gerald Pfeifer <gerald at pfeifer.com>
To: wine-patches at winehq.org
Date: Tue, 11 May 2010 11:12:06
Subject: gdi32: Properly restore the DC in MF_PlayMetaFile.

Alexandre was just too right in
  http://www.winehq.org/pipermail/wine-devel/2010-May/083517.html
and this fixes my oversight and replaces "Remove variable hFont which
is not really used from MF_PlayMetaFile."

Thanks for catching it!

Gerald

---
 dlls/gdi32/metafile.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/gdi32/metafile.c b/dlls/gdi32/metafile.c
index dae991f..794affe 100644
--- a/dlls/gdi32/metafile.c
+++ b/dlls/gdi32/metafile.c
@@ -448,6 +448,7 @@ static BOOL MF_PlayMetaFile( HDC hdc, METAHEADER *mh)
     /* restore DC */
     SelectObject(hdc, hPen);
     SelectObject(hdc, hBrush);
+    SelectObject(hdc, hFont);
     SelectPalette(hdc, hPal, FALSE);
     ExtSelectClipRgn(hdc, hRgn, RGN_COPY);
     DeleteObject(hRgn);
-- 
1.6.6.2



More information about the wine-patches mailing list