[ros-diffs] [fireball] 41256: - Properly disable tag validation if using debugging pool (fixes a wrong part of r41255).

fireball at svn.reactos.org fireball at svn.reactos.org
Tue Jun 2 14:54:04 CEST 2009


Author: fireball
Date: Tue Jun  2 16:54:03 2009
New Revision: 41256

URL: http://svn.reactos.org/svn/reactos?rev=41256&view=rev
Log:
- Properly disable tag validation if using debugging pool (fixes a wrong part of r41255).

Modified:
    trunk/reactos/ntoskrnl/mm/pool.c

Modified: trunk/reactos/ntoskrnl/mm/pool.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/pool.c?rev=41256&r1=41255&r2=41256&view=diff
==============================================================================
--- trunk/reactos/ntoskrnl/mm/pool.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/mm/pool.c [iso-8859-1] Tue Jun  2 16:54:03 2009
@@ -267,7 +267,7 @@
         (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 @@
              (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,



More information about the Ros-diffs mailing list