sys: FspAllocatePoolMustSucceed, FspAllocateIrpMustSucceed

This commit is contained in:
Bill Zissimopoulos 2016-03-03 17:20:57 -08:00
parent 98ebfed65b
commit 342fd6a996

View File

@ -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++) 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) if (0 != Result)
return Result; return Result;
@ -96,7 +96,7 @@ PVOID FspAllocateIrpMustSucceed(CCHAR StackSize)
for (ULONG i = 0, n = sizeof(Delays) / sizeof(Delays[0]);; i++) 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) if (0 != Result)
return Result; return Result;