Author: jgardou
Date: Sat Jul 26 15:41:21 2014
New Revision: 63740
URL:
http://svn.reactos.org/svn/reactos?rev=63740&view=rev
Log:
[WIN32K]
- Some more DPRINT -> DEBUGCHANNEL
Modified:
trunk/reactos/win32ss/gdi/eng/clip.c
Modified: trunk/reactos/win32ss/gdi/eng/clip.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/gdi/eng/clip.c?rev…
==============================================================================
--- trunk/reactos/win32ss/gdi/eng/clip.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/gdi/eng/clip.c [iso-8859-1] Sat Jul 26 15:41:21 2014
@@ -7,9 +7,8 @@
*/
#include <win32k.h>
-
-#define NDEBUG
-#include <debug.h>
+DBG_DEFAULT_CHANNEL(EngClip);
+
static __inline int
CompareRightDown(
@@ -256,13 +255,15 @@
APIENTRY
EngCreateClip(VOID)
{
- CLIPGDI *Clip = EngAllocMem(FL_ZERO_MEMORY, sizeof(CLIPGDI), GDITAG_CLIPOBJ);
+ XCLIPOBJ *Clip = EngAllocMem(FL_ZERO_MEMORY, sizeof(XCLIPOBJ), GDITAG_CLIPOBJ);
if(Clip != NULL)
{
- Clip->Rects = &Clip->ClipObj.rclBounds;
+ IntEngInitClipObj(Clip);
+ TRACE("Created Clip Obj %p.\n", Clip);
return &Clip->ClipObj;
}
+ ERR("Clip object allocation failed!\n");
return NULL;
}
@@ -275,8 +276,8 @@
_In_ _Post_ptr_invalid_ CLIPOBJ *pco)
{
XCLIPOBJ* Clip = CONTAINING_RECORD(pco, XCLIPOBJ, ClipObj);
- if (Clip->Rects != &Clip->ClipObj.rclBounds)
- EngFreeMem(Clip->Rects);
+ TRACE("Deleting %p.\n");
+ IntEngFreeClipResources(Clip);
EngFreeMem(Clip);
}
@@ -319,7 +320,7 @@
break;
default:
- DPRINT1("Invalid iDirection %lu\n", iDirection);
+ ERR("Invalid iDirection %lu\n", iDirection);
iDirection = Clip->EnumOrder;
CompareFunc = NULL;
break;