Fix a memory link in the font dialog's WM_PAINT handler

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

Changelog:
    Dmitry Timoshkov <dmitry@xxxxxxxxxxxxxxx>
    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 );
     }
 





[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux