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:
Timo Kreuzer 2012-03-06 10:33:28 +00:00
parent 5001cb2608
commit 6ca9e86d16

View file

@ -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