mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 13:35:47 +00:00
[WIN32K]
Initialize the DC's CombinedClip when creating the DC. Fixes a crash caused by Explorer++ svn path=/trunk/; revision=56061
This commit is contained in:
parent
5001cb2608
commit
6ca9e86d16
1 changed files with 7 additions and 0 deletions
|
@ -112,6 +112,8 @@ DC_AllocDcWithHandle()
|
|||
void
|
||||
DC_InitHack(PDC pdc)
|
||||
{
|
||||
HRGN hVisRgn;
|
||||
|
||||
TextIntRealizeFont(pdc->pdcattr->hlfntNew,NULL);
|
||||
pdc->pdcattr->iCS_CP = ftGdiGetTextCharsetInfo(pdc,NULL,0);
|
||||
|
||||
|
@ -121,6 +123,11 @@ DC_InitHack(PDC pdc)
|
|||
/* Select regions */
|
||||
pdc->rosdc.hClipRgn = NULL;
|
||||
pdc->rosdc.hGCClipRgn = NULL;
|
||||
|
||||
hVisRgn = IntSysCreateRectRgn(0, 0, 1, 1);
|
||||
ASSERT(hVisRgn);
|
||||
GdiSelectVisRgn(pdc->BaseObject.hHmgr, hVisRgn);
|
||||
GreDeleteObject(hVisRgn);
|
||||
}
|
||||
|
||||
VOID
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue