From 5e9dedd497c875a7612978eaec013e42d7ace9ad Mon Sep 17 00:00:00 2001 From: Thomas Bluemel Date: Sun, 19 Dec 2004 16:53:57 +0000 Subject: [PATCH] use GDI_DEBUG svn path=/trunk/; revision=12227 --- reactos/subsys/win32k/objects/gdiobj.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/reactos/subsys/win32k/objects/gdiobj.c b/reactos/subsys/win32k/objects/gdiobj.c index 5ec641b7b3a..e5fea319eee 100644 --- a/reactos/subsys/win32k/objects/gdiobj.c +++ b/reactos/subsys/win32k/objects/gdiobj.c @@ -19,7 +19,7 @@ /* * GDIOBJ.C - GDI object manipulation routines * - * $Id: gdiobj.c,v 1.81 2004/12/19 05:03:29 royce Exp $ + * $Id: gdiobj.c,v 1.82 2004/12/19 16:53:57 weiden Exp $ */ #include @@ -209,7 +209,7 @@ GetObjectSize(DWORD ObjectType) return 0; } -#ifdef DBG +#ifdef GDI_DEBUG static int leak_reported = 0; #define GDI_STACK_LEVELS 12 @@ -299,7 +299,7 @@ done: if ( i < n && h[i].count == 1 ) DbgPrint ( "(list terminated - the remaining entries have 1 allocation only)\n" ); } -#endif /* DBG */ +#endif /* GDI_DEBUG */ /*! * Allocate memory for GDI object and return handle to it. @@ -395,7 +395,7 @@ LockHandle: /* unlock the entry */ InterlockedExchange(&Entry->ProcessId, CurrentProcessId); -#ifdef DBG +#ifdef GDI_DEBUG { PULONG Frame; int which; @@ -412,7 +412,7 @@ LockHandle: for ( ; which < GDI_STACK_LEVELS; which++ ) GDIHandleAllocator[Index][which] = 0xDEADBEEF; } -#endif /* DBG */ +#endif /* GDI_DEBUG */ if(W32Process != NULL) { @@ -441,9 +441,9 @@ LockHandle: ExFreeToPagedLookasideList(LookasideList, newObject); DPRINT1("Failed to insert gdi object into the handle table, no handles left!\n"); -#ifdef DBG +#ifdef GDI_DEBUG IntDumpHandleTable(); -#endif /* DBG */ +#endif /* GDI_DEBUG */ } else {