mirror of
https://github.com/winfsp/winfsp.git
synced 2025-06-14 15:52:47 -05:00
sys: IRP_MJ_WRITE, IRP_MJ_READ: testing
This commit is contained in:
@ -197,7 +197,7 @@ static NTSTATUS FspFsvolReadNonCached(
|
||||
if (0 == Irp->MdlAddress)
|
||||
{
|
||||
Result = FspLockUserBuffer(Irp->UserBuffer, ReadLength,
|
||||
Irp->RequestorMode, IoReadAccess, &Irp->MdlAddress);
|
||||
Irp->RequestorMode, IoWriteAccess, &Irp->MdlAddress);
|
||||
if (!NT_SUCCESS(Result))
|
||||
return Result;
|
||||
}
|
||||
|
@ -522,6 +522,7 @@ NTSTATUS FspSafeMdlCreate(PMDL UserMdl, LOCK_OPERATION Operation, FSP_SAFE_MDL *
|
||||
Result = STATUS_INSUFFICIENT_RESOURCES;
|
||||
goto exit;
|
||||
}
|
||||
SafeMdl->Mdl->MdlFlags |= MDL_PAGES_LOCKED;
|
||||
UserPfnArray = MmGetMdlPfnArray(UserMdl);
|
||||
SafePfnArray = MmGetMdlPfnArray(SafeMdl->Mdl);
|
||||
RtlCopyMemory(SafePfnArray, UserPfnArray, PageCount * sizeof(PFN_NUMBER));
|
||||
|
Reference in New Issue
Block a user