From bbaddbe80cd0a4ef65d5308a383a06fbaa0c4ec8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Gardou?= Date: Sat, 26 Jul 2014 15:41:21 +0000 Subject: [PATCH] [WIN32K] - Some more DPRINT -> DEBUGCHANNEL svn path=/trunk/; revision=63740 --- reactos/win32ss/gdi/eng/clip.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/reactos/win32ss/gdi/eng/clip.c b/reactos/win32ss/gdi/eng/clip.c index 7a7381581e1..61ffb0d34ad 100644 --- a/reactos/win32ss/gdi/eng/clip.c +++ b/reactos/win32ss/gdi/eng/clip.c @@ -7,9 +7,8 @@ */ #include +DBG_DEFAULT_CHANNEL(EngClip); -#define NDEBUG -#include static __inline int CompareRightDown( @@ -256,13 +255,15 @@ CLIPOBJ * 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 @@ EngDeleteClip( _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 @@ CLIPOBJ_cEnumStart( break; default: - DPRINT1("Invalid iDirection %lu\n", iDirection); + ERR("Invalid iDirection %lu\n", iDirection); iDirection = Clip->EnumOrder; CompareFunc = NULL; break; -- 2.17.1