Author: gschneider
Date: Thu Jul 30 23:12:06 2009
New Revision: 42309
URL:
http://svn.reactos.org/svn/reactos?rev=42309&view=rev
Log:
Don't try to delete non existing XLateObjects (NULL brushes return those for example)
Modified:
trunk/reactos/subsystems/win32/win32k/objects/dcobjs.c
Modified: trunk/reactos/subsystems/win32/win32k/objects/dcobjs.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ob…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/objects/dcobjs.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/objects/dcobjs.c [iso-8859-1] Thu Jul 30
23:12:06 2009
@@ -61,7 +61,10 @@
EBRUSHOBJ_vSetSolidBrushColor(&pdc->eboFill, pdcattr->crPenClr, pxlo);
}
- EngDeleteXlate(pxlo);
+ if (pxlo != NULL)
+ {
+ EngDeleteXlate(pxlo);
+ }
/* Clear flags */
pdcattr->ulDirty_ &= ~(DIRTY_FILL | DC_BRUSH_DIRTY);
@@ -117,7 +120,10 @@
EBRUSHOBJ_vSetSolidBrushColor(&pdc->eboLine, pdcattr->crPenClr, pxlo);
}
- EngDeleteXlate(pxlo);
+ if (pxlo != NULL)
+ {
+ EngDeleteXlate(pxlo);
+ }
/* Clear flags */
pdcattr->ulDirty_ &= ~(DIRTY_LINE | DC_PEN_DIRTY);