Author: tfaber
Date: Fri May  2 09:17:36 2014
New Revision: 63102

URL: http://svn.reactos.org/svn/reactos?rev=63102&view=rev
Log:
[NTOS:IO]
- Don't bugcheck if quota allocation fails in IoAllocateIrp

Modified:
    trunk/reactos/ntoskrnl/io/iomgr/irp.c

Modified: trunk/reactos/ntoskrnl/io/iomgr/irp.c
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/io/iomgr/irp.c?rev=63102&r1=63101&r2=63102&view=diff
==============================================================================
--- trunk/reactos/ntoskrnl/io/iomgr/irp.c       [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/io/iomgr/irp.c       [iso-8859-1] Fri May  2 
09:17:36 2014
@@ -591,16 +591,18 @@
         /* 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
     {


Reply via email to