From 342fd6a99692bdde84a1923c2667754d30b810ad Mon Sep 17 00:00:00 2001 From: Bill Zissimopoulos Date: Thu, 3 Mar 2016 17:20:57 -0800 Subject: [PATCH] sys: FspAllocatePoolMustSucceed, FspAllocateIrpMustSucceed --- src/sys/util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sys/util.c b/src/sys/util.c index de646892..302a81d9 100644 --- a/src/sys/util.c +++ b/src/sys/util.c @@ -78,7 +78,7 @@ PVOID FspAllocatePoolMustSucceed(POOL_TYPE PoolType, SIZE_T Size, ULONG Tag) for (ULONG i = 0, n = sizeof(Delays) / sizeof(Delays[0]);; i++) { - Result = ExAllocatePoolWithTag(PoolType, Size, Tag); + Result = DEBUGRANDTEST(95, TRUE) ? ExAllocatePoolWithTag(PoolType, Size, Tag) : 0; if (0 != Result) return Result; @@ -96,7 +96,7 @@ PVOID FspAllocateIrpMustSucceed(CCHAR StackSize) for (ULONG i = 0, n = sizeof(Delays) / sizeof(Delays[0]);; i++) { - Result = IoAllocateIrp(StackSize, FALSE); + Result = DEBUGRANDTEST(95, TRUE) ? IoAllocateIrp(StackSize, FALSE) : 0; if (0 != Result) return Result;