Fix a font object leak in the font dialog's WM_PAINT handler.
This commit is contained in:
parent
83797bdbb8
commit
5882718eef
|
@ -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 );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue