mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user