Fix a font object leak in the font dialog's WM_PAINT handler.

This commit is contained in:
Dmitry Timoshkov 2003-12-08 21:52:43 +00:00 committed by Alexandre Julliard
parent 83797bdbb8
commit 5882718eef
1 changed files with 1 additions and 0 deletions

View File

@ -1131,6 +1131,7 @@ LRESULT CFn_WMPaint(HWND hDlg, WPARAM wParam, LPARAM lParam,
sample_lang_text[CHARSET_ORDER[lpcf->lpLogFont->lfCharSet]],
-1, &info.rcWindow, DT_CENTER|DT_VCENTER|DT_SINGLELINE );
DeleteObject(SelectObject( hdc, hOrigFont ));
EndPaint( hDlg, &ps );
}