gdi32: Properly restore the DC in MF_PlayMetaFile.

Gerald Pfeifer gerald at pfeifer.com
Tue May 11 04:12:06 CDT 2010


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