[ros-diffs] [tkreuzer] 56061: [WIN32K] Initialize the DC's CombinedClip when creating the DC. Fixes a crash caused by Explorer++
tkreuzer at svn.reactos.org
tkreuzer at svn.reactos.org
Tue Mar 6 10:33:30 UTC 2012
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/objects/dclife.c?rev=56061&r1=56060&r2=56061&view=diff
==============================================================================
--- 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
More information about the Ros-diffs
mailing list