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:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user