diff --git a/reactos/drivers/filesystems/npfs_new/datasup.c b/reactos/drivers/filesystems/npfs_new/datasup.c index cf9b5145172..bc530ec7fcf 100644 --- a/reactos/drivers/filesystems/npfs_new/datasup.c +++ b/reactos/drivers/filesystems/npfs_new/datasup.c @@ -329,7 +329,7 @@ NpAddDataQueueEntry(IN ULONG NamedPipeEnd, case 3: ASSERT(Irp != NULL); - DataEntry = ExAllocatePoolWithQuotaTag(NonPagedPool, + DataEntry = ExAllocatePoolWithQuotaTag(NonPagedPool | POOL_QUOTA_FAIL_INSTEAD_OF_RAISE, sizeof(*DataEntry), NPFS_DATA_ENTRY_TAG); if (!DataEntry) @@ -371,7 +371,7 @@ NpAddDataQueueEntry(IN ULONG NamedPipeEnd, HasSpace = FALSE; } - DataEntry = ExAllocatePoolWithQuotaTag(NonPagedPool, + DataEntry = ExAllocatePoolWithQuotaTag(NonPagedPool | POOL_QUOTA_FAIL_INSTEAD_OF_RAISE, EntrySize, NPFS_DATA_ENTRY_TAG); if (!DataEntry) diff --git a/reactos/drivers/filesystems/npfs_new/fsctrl.c b/reactos/drivers/filesystems/npfs_new/fsctrl.c index 346141b1b45..36d5ac578ff 100644 --- a/reactos/drivers/filesystems/npfs_new/fsctrl.c +++ b/reactos/drivers/filesystems/npfs_new/fsctrl.c @@ -433,7 +433,9 @@ NpTransceive(IN PDEVICE_OBJECT DeviceObject, if (BytesWritten) { - NewIrp->AssociatedIrp.SystemBuffer = ExAllocatePoolWithQuotaTag(PagedPool, BytesWritten, NPFS_WRITE_BLOCK_TAG); + NewIrp->AssociatedIrp.SystemBuffer = ExAllocatePoolWithQuotaTag(PagedPool | POOL_QUOTA_FAIL_INSTEAD_OF_RAISE, + BytesWritten, + NPFS_WRITE_BLOCK_TAG); if (!NewIrp->AssociatedIrp.SystemBuffer) { IoFreeIrp(NewIrp); diff --git a/reactos/drivers/filesystems/npfs_new/secursup.c b/reactos/drivers/filesystems/npfs_new/secursup.c index d5718f10717..3934b49ce77 100644 --- a/reactos/drivers/filesystems/npfs_new/secursup.c +++ b/reactos/drivers/filesystems/npfs_new/secursup.c @@ -139,7 +139,9 @@ NpGetClientSecurityContext(IN ULONG NamedPipeEnd, } else { - NewContext = ExAllocatePoolWithQuotaTag(PagedPool, sizeof(*NewContext), NPFS_CLIENT_SEC_CTX_TAG); + NewContext = ExAllocatePoolWithQuotaTag(PagedPool | POOL_QUOTA_FAIL_INSTEAD_OF_RAISE, + sizeof(*NewContext), + NPFS_CLIENT_SEC_CTX_TAG); if (!NewContext) return STATUS_INSUFFICIENT_RESOURCES; Status = SeCreateClientSecurity(Thread, &Ccb->ClientQos, 0, NewContext); diff --git a/reactos/drivers/filesystems/npfs_new/waitsup.c b/reactos/drivers/filesystems/npfs_new/waitsup.c index 0aedd6d7ff9..5519d6b52bb 100644 --- a/reactos/drivers/filesystems/npfs_new/waitsup.c +++ b/reactos/drivers/filesystems/npfs_new/waitsup.c @@ -219,7 +219,7 @@ NpAddWaiter(IN PNP_WAIT_QUEUE WaitQueue, IoStack = IoGetCurrentIrpStackLocation(Irp); - WaitEntry = ExAllocatePoolWithQuotaTag(NonPagedPool, + WaitEntry = ExAllocatePoolWithQuotaTag(NonPagedPool | POOL_QUOTA_FAIL_INSTEAD_OF_RAISE, sizeof(*WaitEntry), NPFS_WRITE_BLOCK_TAG); if (!WaitEntry)