mirror of
https://github.com/reactos/reactos.git
synced 2024-11-07 15:10:53 +00:00
- Realize the system font when creating a DC - avoids a crash on simple
startup. svn path=/trunk/; revision=5371
This commit is contained in:
parent
2f64211efe
commit
ec488b1f40
1 changed files with 2 additions and 1 deletions
|
@ -16,7 +16,7 @@
|
|||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
/* $Id: dc.c,v 1.65 2003/08/01 19:42:54 royce Exp $
|
||||
/* $Id: dc.c,v 1.66 2003/08/01 20:22:58 dwelch Exp $
|
||||
*
|
||||
* DC.C - Device context functions
|
||||
*
|
||||
|
@ -1516,6 +1516,7 @@ DC_AllocDC(LPCWSTR Driver)
|
|||
NewDC->w.vport2WorldValid = TRUE;
|
||||
|
||||
NewDC->w.hFont = W32kGetStockObject(SYSTEM_FONT);
|
||||
TextIntRealizeFont(NewDC->w.hFont);
|
||||
|
||||
GDIOBJ_UnlockObj( hDC, GO_DC_MAGIC );
|
||||
return hDC;
|
||||
|
|
Loading…
Reference in a new issue