From 860bde3b68a9de50b9bb613489efa50dadc6a26d Mon Sep 17 00:00:00 2001 From: David Welch Date: Tue, 9 Mar 2004 20:34:28 +0000 Subject: [PATCH] - Disabled double lock message in NDEBUG builds since it is triggered whenever there is contention for the same object. svn path=/trunk/; revision=8613 --- reactos/subsys/win32k/objects/gdiobj.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/reactos/subsys/win32k/objects/gdiobj.c b/reactos/subsys/win32k/objects/gdiobj.c index 8e9f2824dbf..4e257ece3c6 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.61 2004/02/28 21:16:55 weiden Exp $ + * $Id: gdiobj.c,v 1.62 2004/03/09 20:34:28 dwelch Exp $ * */ @@ -745,6 +745,9 @@ GDIOBJ_LockObjDbg (const char* file, int line, HGDIOBJ hObj, DWORD ObjectType) return NULL; } +#ifdef NDEBUG + ExAcquireFastMutex(&ObjHdr->Lock); +#else /* NDEBUG */ if (! ExTryToAcquireFastMutex(&ObjHdr->Lock)) { DPRINT1("Caution! GDIOBJ_LockObj trying to lock object 0x%x second time\n", hObj); @@ -756,6 +759,7 @@ GDIOBJ_LockObjDbg (const char* file, int line, HGDIOBJ hObj, DWORD ObjectType) ExAcquireFastMutex(&ObjHdr->Lock); DPRINT1(" Disregard previous message about object 0x%x, it's ok\n", hObj); } +#endif /* NDEBUG */ ExAcquireFastMutex(&RefCountHandling); ObjHdr->dwCount++;