mirror of
https://github.com/reactos/reactos.git
synced 2024-09-13 14:22:22 +00:00
- Properly disable tag validation if using debugging pool (fixes a wrong part of r41255).
svn path=/trunk/; revision=41256
This commit is contained in:
parent
88b8188a0e
commit
65612168fe
|
@ -267,7 +267,7 @@ ExFreePoolWithTag(
|
||||||
(char*)Block < ((char*)MmPagedPoolBase + MmPagedPoolSize))
|
(char*)Block < ((char*)MmPagedPoolBase + MmPagedPoolSize))
|
||||||
{
|
{
|
||||||
/* Validate tag */
|
/* Validate tag */
|
||||||
#if 0
|
#ifndef DEBUG_PPOOL
|
||||||
if (Tag != 0 && Tag != EiGetPagedPoolTag(Block))
|
if (Tag != 0 && Tag != EiGetPagedPoolTag(Block))
|
||||||
KeBugCheckEx(BAD_POOL_CALLER,
|
KeBugCheckEx(BAD_POOL_CALLER,
|
||||||
0x0a,
|
0x0a,
|
||||||
|
@ -297,13 +297,14 @@ ExFreePoolWithTag(
|
||||||
(char*)Block < ((char*)MiNonPagedPoolStart + MiNonPagedPoolLength))
|
(char*)Block < ((char*)MiNonPagedPoolStart + MiNonPagedPoolLength))
|
||||||
{
|
{
|
||||||
/* Validate tag */
|
/* Validate tag */
|
||||||
/*if (Tag != 0 && Tag != EiGetNonPagedPoolTag(Block))
|
#ifndef DEBUG_NPOOL
|
||||||
|
if (Tag != 0 && Tag != EiGetNonPagedPoolTag(Block))
|
||||||
KeBugCheckEx(BAD_POOL_CALLER,
|
KeBugCheckEx(BAD_POOL_CALLER,
|
||||||
0x0a,
|
0x0a,
|
||||||
(ULONG_PTR)Block,
|
(ULONG_PTR)Block,
|
||||||
EiGetNonPagedPoolTag(Block),
|
EiGetNonPagedPoolTag(Block),
|
||||||
Tag);*/
|
Tag);
|
||||||
|
#endif
|
||||||
/* Validate IRQL */
|
/* Validate IRQL */
|
||||||
if (KeGetCurrentIrql() > DISPATCH_LEVEL)
|
if (KeGetCurrentIrql() > DISPATCH_LEVEL)
|
||||||
KeBugCheckEx(BAD_POOL_CALLER,
|
KeBugCheckEx(BAD_POOL_CALLER,
|
||||||
|
|
Loading…
Reference in a new issue