From 8a31b75da2a893b17f4cace76e5de08c1206a0ef Mon Sep 17 00:00:00 2001 From: Thomas Faber Date: Fri, 2 May 2014 09:17:36 +0000 Subject: [PATCH] [NTOS:IO] - Don't bugcheck if quota allocation fails in IoAllocateIrp svn path=/trunk/; revision=63102 --- reactos/ntoskrnl/io/iomgr/irp.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/reactos/ntoskrnl/io/iomgr/irp.c b/reactos/ntoskrnl/io/iomgr/irp.c index 609636e3676..f768c7649d2 100644 --- a/reactos/ntoskrnl/io/iomgr/irp.c +++ b/reactos/ntoskrnl/io/iomgr/irp.c @@ -591,16 +591,18 @@ IoAllocateIrp(IN CCHAR StackSize, /* Check if we should charge quota */ if (ChargeQuota) { - Irp = ExAllocatePoolWithQuotaTag(NonPagedPool, Size, TAG_IRP); + Irp = ExAllocatePoolWithQuotaTag(NonPagedPool | POOL_QUOTA_FAIL_INSTEAD_OF_RAISE, + Size, + TAG_IRP); } else { - /* Allocate the IRP With no Quota charge */ + /* Allocate the IRP with no quota charge */ Irp = ExAllocatePoolWithTag(NonPagedPool, Size, TAG_IRP); } /* Make sure it was sucessful */ - if (!Irp) return(NULL); + if (!Irp) return NULL; } else {