mirror of
https://github.com/reactos/reactos.git
synced 2026-05-30 05:51:26 +08:00
Fixed backwards access check that was causing NtWriteFile to fail when given a read only buffer
svn path=/trunk/; revision=15194
This commit is contained in:
@@ -472,14 +472,14 @@ IoBuildAsynchronousFsdRequest(ULONG MajorFunction,
|
||||
/* Use an MDL for Direct I/O */
|
||||
Irp->MdlAddress = MmCreateMdl(NULL, Buffer, Length);
|
||||
|
||||
/* Use the right Access Type */
|
||||
|
||||
if (MajorFunction == IRP_MJ_READ)
|
||||
{
|
||||
AccessType = IoReadAccess;
|
||||
AccessType = IoWriteAccess;
|
||||
}
|
||||
else
|
||||
{
|
||||
AccessType = IoWriteAccess;
|
||||
AccessType = IoReadAccess;
|
||||
}
|
||||
|
||||
/* Probe and Lock */
|
||||
|
||||
Reference in New Issue
Block a user