Author: tkreuzer
Date: Tue Mar 6 10:33:28 2012
New Revision: 56061
URL:
http://svn.reactos.org/svn/reactos?rev=56061&view=rev
Log:
[WIN32K]
Initialize the DC's CombinedClip when creating the DC. Fixes a crash caused by
Explorer++
Modified:
trunk/reactos/subsystems/win32/win32k/objects/dclife.c
Modified: trunk/reactos/subsystems/win32/win32k/objects/dclife.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ob…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/objects/dclife.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/objects/dclife.c [iso-8859-1] Tue Mar 6
10:33:28 2012
@@ -112,6 +112,8 @@
void
DC_InitHack(PDC pdc)
{
+ HRGN hVisRgn;
+
TextIntRealizeFont(pdc->pdcattr->hlfntNew,NULL);
pdc->pdcattr->iCS_CP = ftGdiGetTextCharsetInfo(pdc,NULL,0);
@@ -121,6 +123,11 @@
/* 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