From 65612168fe20afad6367f38e8fd60564ec18920b Mon Sep 17 00:00:00 2001 From: Aleksey Bragin Date: Tue, 2 Jun 2009 12:54:03 +0000 Subject: [PATCH] - Properly disable tag validation if using debugging pool (fixes a wrong part of r41255). svn path=/trunk/; revision=41256 --- reactos/ntoskrnl/mm/pool.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/reactos/ntoskrnl/mm/pool.c b/reactos/ntoskrnl/mm/pool.c index a483201035a..ba39774a5cc 100644 --- a/reactos/ntoskrnl/mm/pool.c +++ b/reactos/ntoskrnl/mm/pool.c @@ -267,7 +267,7 @@ ExFreePoolWithTag( (char*)Block < ((char*)MmPagedPoolBase + MmPagedPoolSize)) { /* Validate tag */ -#if 0 +#ifndef DEBUG_PPOOL if (Tag != 0 && Tag != EiGetPagedPoolTag(Block)) KeBugCheckEx(BAD_POOL_CALLER, 0x0a, @@ -297,13 +297,14 @@ ExFreePoolWithTag( (char*)Block < ((char*)MiNonPagedPoolStart + MiNonPagedPoolLength)) { /* Validate tag */ - /*if (Tag != 0 && Tag != EiGetNonPagedPoolTag(Block)) +#ifndef DEBUG_NPOOL + if (Tag != 0 && Tag != EiGetNonPagedPoolTag(Block)) KeBugCheckEx(BAD_POOL_CALLER, 0x0a, (ULONG_PTR)Block, EiGetNonPagedPoolTag(Block), - Tag);*/ - + Tag); +#endif /* Validate IRQL */ if (KeGetCurrentIrql() > DISPATCH_LEVEL) KeBugCheckEx(BAD_POOL_CALLER,