1
0
mirror of https://github.com/winfsp/winfsp.git synced 2026-01-02 09:20:48 -06:00

sys: ProcessBuffer: conditional usage

This commit is contained in:
Bill Zissimopoulos
2017-02-23 16:36:21 -08:00
parent 4b43cc590f
commit 28f97c2619
4 changed files with 31 additions and 33 deletions

View File

@@ -417,8 +417,7 @@ NTSTATUS FspFsvolWritePrepare(
{
PAGED_CODE();
if (FspFsvolDeviceWriteShouldUseProcessBuffer(
IoGetCurrentIrpStackLocation(Irp)->DeviceObject, Request->Req.Write.Length))
if (FspWriteIrpShouldUseProcessBuffer(Irp, Request->Req.Write.Length))
{
NTSTATUS Result;
PVOID Cookie;
@@ -572,8 +571,7 @@ static VOID FspFsvolWriteNonCachedRequestFini(FSP_FSCTL_TRANSACT_REQ *Request, P
PIRP Irp = Context[RequestIrp];
if (0 != Irp && FspFsvolDeviceWriteShouldUseProcessBuffer(
IoGetCurrentIrpStackLocation(Irp)->DeviceObject, Request->Req.Write.Length))
if (0 != Irp && FspWriteIrpShouldUseProcessBuffer(Irp, Request->Req.Write.Length))
{
PVOID Cookie = Context[RequestCookie];
PVOID Address = Context[RequestAddress];