mirror of
https://github.com/winfsp/winfsp.git
synced 2025-07-03 09:22:57 -05:00
sys: FspLockUserBuffer: now acts directly on the IRP
This commit is contained in:
@ -290,13 +290,9 @@ static NTSTATUS FspFsvolWriteNonCached(
|
||||
}
|
||||
|
||||
/* probe and lock the user buffer */
|
||||
if (0 == Irp->MdlAddress)
|
||||
{
|
||||
Result = FspLockUserBuffer(Irp->UserBuffer, WriteLength,
|
||||
Irp->RequestorMode, IoReadAccess, &Irp->MdlAddress);
|
||||
if (!NT_SUCCESS(Result))
|
||||
return Result;
|
||||
}
|
||||
Result = FspLockUserBuffer(Irp, WriteLength, IoReadAccess);
|
||||
if (!NT_SUCCESS(Result))
|
||||
return Result;
|
||||
|
||||
/* acquire FileNode exclusive Full */
|
||||
Success = DEBUGTEST(90, TRUE) &&
|
||||
|
Reference in New Issue
Block a user