Fix a memory link in the font dialog's WM_PAINT handler
Dmitry Timoshkov
dmitry at baikal.ru
Mon Dec 8 07:09:36 CST 2003
Hello,
Changelog:
Dmitry Timoshkov <dmitry at codeweavers.com>
Fix a memory link in the font dialog's WM_PAINT handler.
--- cvs/hq/wine/dlls/commdlg/fontdlg.c 2003-12-05 13:56:34.000000000 +0800
+++ wine/dlls/commdlg/fontdlg.c 2003-12-08 13:04:03.000000000 +0800
@@ -1131,6 +1131,7 @@ LRESULT CFn_WMPaint(HWND hDlg, WPARAM wP
sample_lang_text[CHARSET_ORDER[lpcf->lpLogFont->lfCharSet]],
-1, &info.rcWindow, DT_CENTER|DT_VCENTER|DT_SINGLELINE );
+ DeleteObject(SelectObject( hdc, hOrigFont ));
EndPaint( hDlg, &ps );
}
More information about the wine-patches
mailing list