Alexandre Julliard : gdi32: Fix a misplaced release_dc_ptr call.

Alexandre Julliard julliard at winehq.org
Fri Oct 28 12:48:37 CDT 2011


Module: wine
Branch: master
Commit: 26aaaa1269b1055935b65164759375477113a148
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=26aaaa1269b1055935b65164759375477113a148

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Fri Oct 28 11:29:34 2011 +0200

gdi32: Fix a misplaced release_dc_ptr call.

---

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

diff --git a/dlls/gdi32/font.c b/dlls/gdi32/font.c
index 44f1af4..10a7f1d 100644
--- a/dlls/gdi32/font.c
+++ b/dlls/gdi32/font.c
@@ -653,8 +653,8 @@ static INT FONT_EnumFontFamiliesEx( HDC hDC, LPLOGFONTW plf, FONTENUMPROCW efpro
         fe.unicode = unicode;
         fe.hdc = hDC;
 	ret = physdev->funcs->pEnumFonts( physdev, plf, FONT_EnumInstance, (LPARAM)&fe );
+        release_dc_ptr( dc );
     }
-    release_dc_ptr( dc );
     return ret;
 }
 




More information about the wine-cvs mailing list