[NTFS]
authorPierre Schweitzer <pierre@reactos.org>
Sun, 10 May 2015 21:24:51 +0000 (21:24 +0000)
committerPierre Schweitzer <pierre@reactos.org>
Sun, 10 May 2015 21:24:51 +0000 (21:24 +0000)
Don't call MmGetSystemAddressForMdl()

svn path=/trunk/; revision=67644

reactos/drivers/filesystems/ntfs/dispatch.c
reactos/drivers/filesystems/ntfs/rw.c

index ebba60e..370b9de 100644 (file)
@@ -89,8 +89,6 @@ NtfsFsdDispatch(PDEVICE_OBJECT DeviceObject,
            ((IrpContext->Flags & IRPCONTEXT_COMPLETE) && !(IrpContext->Flags & IRPCONTEXT_QUEUE)) ||
            (!(IrpContext->Flags & IRPCONTEXT_COMPLETE) && (IrpContext->Flags & IRPCONTEXT_QUEUE)));
 
            ((IrpContext->Flags & IRPCONTEXT_COMPLETE) && !(IrpContext->Flags & IRPCONTEXT_QUEUE)) ||
            (!(IrpContext->Flags & IRPCONTEXT_COMPLETE) && (IrpContext->Flags & IRPCONTEXT_QUEUE)));
 
-
-
     if (IrpContext->Flags & IRPCONTEXT_COMPLETE)
     {
         Irp->IoStatus.Status = Status;
     if (IrpContext->Flags & IRPCONTEXT_COMPLETE)
     {
         Irp->IoStatus.Status = Status;
index a5b5f74..f51f505 100644 (file)
@@ -184,7 +184,7 @@ NtfsRead(PNTFS_IRP_CONTEXT IrpContext)
     DeviceExt = DeviceObject->DeviceExtension;
     ReadLength = Stack->Parameters.Read.Length;
     ReadOffset = Stack->Parameters.Read.ByteOffset;
     DeviceExt = DeviceObject->DeviceExtension;
     ReadLength = Stack->Parameters.Read.Length;
     ReadOffset = Stack->Parameters.Read.ByteOffset;
-    Buffer = MmGetSystemAddressForMdl(Irp->MdlAddress);
+    Buffer = NtfsGetUserBuffer(Irp);
 
     Status = NtfsReadFile(DeviceExt,
                           FileObject,
 
     Status = NtfsReadFile(DeviceExt,
                           FileObject,